diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-07-21 15:59:58 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-07-21 15:59:58 +0700 |
commit | c9b7f41669ddc8eb49011186b5631842538a3a69 (patch) | |
tree | ba20c0be0274a52ff862717b49195b9a284f93de /crypto/src/asn1 | |
parent | [BMA-117] (diff) | |
download | BouncyCastle.NET-ed25519-c9b7f41669ddc8eb49011186b5631842538a3a69.tar.xz |
Port update from Java
Diffstat (limited to '')
-rw-r--r-- | crypto/src/asn1/x509/ExtendedKeyUsage.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/src/asn1/x509/ExtendedKeyUsage.cs b/crypto/src/asn1/x509/ExtendedKeyUsage.cs index 57f769879..a5b11f210 100644 --- a/crypto/src/asn1/x509/ExtendedKeyUsage.cs +++ b/crypto/src/asn1/x509/ExtendedKeyUsage.cs @@ -84,10 +84,11 @@ namespace Org.BouncyCastle.Asn1.X509 { Asn1EncodableVector v = new Asn1EncodableVector(); - foreach (Asn1Object o in usages) + foreach (object usage in usages) { - v.Add(o); + Asn1Encodable o = KeyPurposeID.GetInstance(usage); + v.Add(o); this.usageTable[o] = o; } |