Skip to content

Commit

Permalink
Fixes decoding of CMS/PKCS #7 messages with an explicit cryptographic…
Browse files Browse the repository at this point in the history
… object identifier
  • Loading branch information
marek-safar committed Mar 6, 2018
1 parent 2dc56b5 commit f28abdb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public sealed class SignerInfo {
// only accessible from SignedPkcs7.SignerInfos
internal SignerInfo (string hashName, X509Certificate2 certificate, SubjectIdentifierType type, object o, int version)
{
_digest = new Oid (CryptoConfig.MapNameToOID (hashName));
_digest = new Oid (CryptoConfig.MapNameToOID (hashName) ?? hashName);
_certificate = certificate;
_counter = new SignerInfoCollection ();
_signed = new CryptographicAttributeObjectCollection ();
Expand Down
Loading

0 comments on commit f28abdb

Please sign in to comment.