diff options
author | mw <megan@cryptoworkshop.com> | 2020-10-22 17:58:24 +1100 |
---|---|---|
committer | mw <megan@cryptoworkshop.com> | 2020-10-22 17:58:24 +1100 |
commit | 41c26ef9a2a22bebedff9f9c7a60d9be989c6609 (patch) | |
tree | 26bbe5eabaf9402d4bce863c481f6c6f84a6c24d /crypto/src/tsp | |
parent | GCM updates from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-41c26ef9a2a22bebedff9f9c7a60d9be989c6609.tar.xz |
Updated TableGen2 to use IdAASigningCertificateV2 oid
Diffstat (limited to 'crypto/src/tsp')
-rw-r--r-- | crypto/src/tsp/TimeStampTokenGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tsp/TimeStampTokenGenerator.cs b/crypto/src/tsp/TimeStampTokenGenerator.cs index 76228761a..ae4a0caeb 100644 --- a/crypto/src/tsp/TimeStampTokenGenerator.cs +++ b/crypto/src/tsp/TimeStampTokenGenerator.cs @@ -372,9 +372,9 @@ namespace Org.BouncyCastle.Tsp public Asn1.Cms.AttributeTable GetAttributes(IDictionary parameters) { Asn1.Cms.AttributeTable tab = infoGen.signedGen.GetAttributes(parameters); - if (tab[PkcsObjectIdentifiers.IdAASigningCertificate] == null) + if (tab[PkcsObjectIdentifiers.IdAASigningCertificateV2] == null) { - return tab.Add(PkcsObjectIdentifiers.IdAASigningCertificate, new SigningCertificateV2(essCertID)); + return tab.Add(PkcsObjectIdentifiers.IdAASigningCertificateV2, new SigningCertificateV2(essCertID)); } return tab; } |