diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-06 13:24:42 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-06 13:24:42 +0700 |
commit | cd11cd479daff0507da302b9459a14d3126b69ae (patch) | |
tree | 75bb51431cdae39fa73d9cda7ed14217fd15b2e0 /crypto/src/tsp | |
parent | More GOST 2012 registry entries (diff) | |
download | BouncyCastle.NET-ed25519-cd11cd479daff0507da302b9459a14d3126b69ae.tar.xz |
Update KeyPurposeID from bc-java
- obsolete old-style names - add Kerberos entries (see https://github.com/bcgit/bc-csharp/pull/256)
Diffstat (limited to 'crypto/src/tsp')
-rw-r--r-- | crypto/src/tsp/TSPUtil.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tsp/TSPUtil.cs b/crypto/src/tsp/TSPUtil.cs index a9402ac6d..1ba289ae6 100644 --- a/crypto/src/tsp/TSPUtil.cs +++ b/crypto/src/tsp/TSPUtil.cs @@ -145,7 +145,7 @@ namespace Org.BouncyCastle.Tsp ExtendedKeyUsage extKey = ExtendedKeyUsage.GetInstance( Asn1Object.FromByteArray(ext.GetOctets())); - if (!extKey.HasKeyPurposeId(KeyPurposeID.IdKPTimeStamping) || extKey.Count != 1) + if (!extKey.HasKeyPurposeId(KeyPurposeID.id_kp_timeStamping) || extKey.Count != 1) throw new TspValidationException("ExtendedKeyUsage not solely time stamping."); } catch (IOException) |