diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-10 19:13:38 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-10 19:13:38 +0700 |
commit | c4f02c22b53e19a2445ee13865dc5e0e04c84359 (patch) | |
tree | e623a07c462c95883a661439dfe188a980b52c7d /crypto/src/asn1/ocsp | |
parent | Add more PkiFailureInfo constants (diff) | |
download | BouncyCastle.NET-ed25519-c4f02c22b53e19a2445ee13865dc5e0e04c84359.tar.xz |
Add BerBitString and improve "unused bit" handling
Diffstat (limited to 'crypto/src/asn1/ocsp')
-rw-r--r-- | crypto/src/asn1/ocsp/BasicOCSPResponse.cs | 7 | ||||
-rw-r--r-- | crypto/src/asn1/ocsp/Signature.cs | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/crypto/src/asn1/ocsp/BasicOCSPResponse.cs b/crypto/src/asn1/ocsp/BasicOCSPResponse.cs index dd666addf..064335ae8 100644 --- a/crypto/src/asn1/ocsp/BasicOCSPResponse.cs +++ b/crypto/src/asn1/ocsp/BasicOCSPResponse.cs @@ -94,7 +94,12 @@ namespace Org.BouncyCastle.Asn1.Ocsp get { return signature; } } - [Obsolete("Use Certs property instead")] + public byte[] GetSignatureOctets() + { + return signature.GetOctets(); + } + + [Obsolete("Use Certs property instead")] public Asn1Sequence GetCerts() { return certs; diff --git a/crypto/src/asn1/ocsp/Signature.cs b/crypto/src/asn1/ocsp/Signature.cs index a07e7a709..df6f43332 100644 --- a/crypto/src/asn1/ocsp/Signature.cs +++ b/crypto/src/asn1/ocsp/Signature.cs @@ -80,7 +80,12 @@ namespace Org.BouncyCastle.Asn1.Ocsp get { return signatureValue; } } - public Asn1Sequence Certs + public byte[] GetSignatureOctets() + { + return signatureValue.GetOctets(); + } + + public Asn1Sequence Certs { get { return certs; } } |