Skip to content

Commit

Permalink
Merge pull request #84 from francislavoie/patch-2
Browse files Browse the repository at this point in the history
Fix potential signature type error in X509Certificate::parse
  • Loading branch information
tmilos committed Jun 20, 2017
2 parents 28681a6 + 401772d commit d025336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LightSaml/Credential/X509Certificate.php
Expand Up @@ -124,7 +124,7 @@ public function parse()
$res = openssl_x509_read($this->toPem());
$this->info = openssl_x509_parse($res);
$this->signatureAlgorithm = null;
$signatureType = isset($info['signatureTypeSN']) ? $info['signatureTypeSN'] : '';
$signatureType = isset($this->info['signatureTypeSN']) ? $this->info['signatureTypeSN'] : '';
if ($signatureType && isset(self::$typeMap[$signatureType])) {
$this->signatureAlgorithm = self::$typeMap[$signatureType];
} else {
Expand Down

0 comments on commit d025336

Please sign in to comment.