Imported Upstream version 5.10.0.160

Former-commit-id: c53882cc1707d973c4b74b4c6c7d98622ea24677
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-03-07 08:46:18 +00:00
parent 80d55115d1
commit efb22d3209
38 changed files with 73 additions and 35 deletions

View File

@ -46,7 +46,7 @@ namespace System.Security.Cryptography.Pkcs {
// 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 ();