Skip to content

Commit

Permalink
system: getOID() moved to somewhere else "apparently"
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Oct 22, 2022
1 parent 8a4ff5b commit 854350f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/www/system_certmanager.php
Expand Up @@ -33,6 +33,7 @@
phpseclib_autoload('ParagonIE\ConstantTime', '/usr/local/share/phpseclib/paragonie');
phpseclib_autoload('phpseclib3', '/usr/local/share/phpseclib');

use phpseclib3\File\ASN1;
use phpseclib3\File\X509;

function csr_generate(&$cert, $keylen_curve, $dn, $digest_alg, $extns)
Expand Down Expand Up @@ -131,8 +132,7 @@ function parse_csr($csr_str)
case 'id-ce-extKeyUsage':
$ret['extendedKeyUsage'] = array();
foreach ($column['extnValue'] as $usage) {
array_push($ret['extendedKeyUsage'], strpos($usage, 'id-kp-') === 0 ? $x509_lib->getOID($usage)
: $usage);
array_push($ret['extendedKeyUsage'], strpos($usage, 'id-kp-') === 0 ? ASN1::getOID($usage) : $usage);
}
break;

Expand Down

0 comments on commit 854350f

Please sign in to comment.