diff options
Diffstat (limited to 'crypto/src/x509')
-rw-r--r-- | crypto/src/x509/X509ExtensionBase.cs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/crypto/src/x509/X509ExtensionBase.cs b/crypto/src/x509/X509ExtensionBase.cs index d9df364b0..8cc805165 100644 --- a/crypto/src/x509/X509ExtensionBase.cs +++ b/crypto/src/x509/X509ExtensionBase.cs @@ -47,9 +47,13 @@ namespace Org.BouncyCastle.X509 return GetExtensionOids(true); } - public virtual Asn1OctetString GetExtensionValue(DerObjectIdentifier oid) - { - return GetX509Extensions()?.GetExtension(oid)?.Value; - } - } + public virtual X509Extension GetExtension(DerObjectIdentifier oid) => + GetX509Extensions()?.GetExtension(oid); + + public virtual Asn1Object GetExtensionParsedValue(DerObjectIdentifier oid) => + GetX509Extensions()?.GetExtensionParsedValue(oid); + + public virtual Asn1OctetString GetExtensionValue(DerObjectIdentifier oid) => + GetX509Extensions()?.GetExtensionValue(oid); + } } |