diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-04-08 20:03:29 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2018-04-08 20:03:29 +0700 |
commit | 5c4edd8e5a26497797f3255aacc455dfc01f604d (patch) | |
tree | ecf164064e74945e48e77536bd469b6c7fae2e68 /crypto/src | |
parent | Update BC OIDs from bc-java (diff) | |
download | BouncyCastle.NET-ed25519-5c4edd8e5a26497797f3255aacc455dfc01f604d.tar.xz |
Add id_at_organizationIdentifier
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/asn1/x509/X509Name.cs | 5 | ||||
-rw-r--r-- | crypto/src/asn1/x509/X509ObjectIdentifiers.cs | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/crypto/src/asn1/x509/X509Name.cs b/crypto/src/asn1/x509/X509Name.cs index 01a7ec04a..aa46caaac 100644 --- a/crypto/src/asn1/x509/X509Name.cs +++ b/crypto/src/asn1/x509/X509Name.cs @@ -159,6 +159,11 @@ namespace Org.BouncyCastle.Asn1.X509 public static readonly DerObjectIdentifier TelephoneNumber = X509ObjectIdentifiers.id_at_telephoneNumber; /** + * id-at-organizationIdentifier + */ + public static readonly DerObjectIdentifier OrganizationIdentifier = X509ObjectIdentifiers.id_at_organizationIdentifier; + + /** * id-at-name */ public static readonly DerObjectIdentifier Name = X509ObjectIdentifiers.id_at_name; diff --git a/crypto/src/asn1/x509/X509ObjectIdentifiers.cs b/crypto/src/asn1/x509/X509ObjectIdentifiers.cs index f00e31475..4df5bba69 100644 --- a/crypto/src/asn1/x509/X509ObjectIdentifiers.cs +++ b/crypto/src/asn1/x509/X509ObjectIdentifiers.cs @@ -17,7 +17,9 @@ namespace Org.BouncyCastle.Asn1.X509 public static readonly DerObjectIdentifier id_at_telephoneNumber = new DerObjectIdentifier(ID + ".20"); public static readonly DerObjectIdentifier id_at_name = new DerObjectIdentifier(ID + ".41"); - // id-SHA1 OBJECT IDENTIFIER ::= + public static readonly DerObjectIdentifier id_at_organizationIdentifier = new DerObjectIdentifier("2.5.4.97"); + + // id-SHA1 OBJECT IDENTIFIER ::= // {iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) 26 } // public static readonly DerObjectIdentifier IdSha1 = new DerObjectIdentifier("1.3.14.3.2.26"); |