diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-21 18:06:14 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2020-02-21 18:06:14 +0700 |
commit | 9f562ae2423c550b95b3e00e6bcbeb6616b2a034 (patch) | |
tree | 2ae4742e2d0793d7e94c2bd299651857c7c6d862 /crypto/src/x509/X509Certificate.cs | |
parent | Fix handling of reason codes (diff) | |
download | BouncyCastle.NET-ed25519-9f562ae2423c550b95b3e00e6bcbeb6616b2a034.tar.xz |
Refactoring
Diffstat (limited to 'crypto/src/x509/X509Certificate.cs')
-rw-r--r-- | crypto/src/x509/X509Certificate.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs index fd156e487..d8d97ec5e 100644 --- a/crypto/src/x509/X509Certificate.cs +++ b/crypto/src/x509/X509Certificate.cs @@ -515,9 +515,9 @@ namespace Org.BouncyCastle.X509 if (ext.Value != null) { - byte[] octs = ext.Value.GetOctets(); - Asn1Object obj = Asn1Object.FromByteArray(octs); - buf.Append(" critical(").Append(ext.IsCritical).Append(") "); + Asn1Object obj = X509ExtensionUtilities.FromExtensionValue(ext.Value); + + buf.Append(" critical(").Append(ext.IsCritical).Append(") "); try { if (oid.Equals(X509Extensions.BasicConstraints)) |