diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2018-09-01 00:05:55 -0400 |
---|---|---|
committer | Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> | 2018-09-03 06:16:52 +0200 |
commit | 9ba3012387e9b7c93d864fe757290726f92cf6e9 (patch) | |
tree | 90cc02626dc16fc8d8fddbcea6ff4f3d8c1212dd /crypto | |
parent | f2ce14d6cfa83c16b36319d71b245a388ddcc1ce (diff) |
add getter for tbsResponseData and signatureAlgorithm on OCSP_BASICRESP
fixes #7081
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/7082)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ocsp/ocsp_cl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/ocsp/ocsp_cl.c b/crypto/ocsp/ocsp_cl.c index a42b80fa5b..5d99ae3bd7 100644 --- a/crypto/ocsp/ocsp_cl.c +++ b/crypto/ocsp/ocsp_cl.c @@ -166,6 +166,16 @@ const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs) return bs->signature; } +const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs) +{ + return &bs->signatureAlgorithm; +} + +const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs) +{ + return &bs->tbsResponseData; +} + /* * Return number of OCSP_SINGLERESP responses present in a basic response. */ |