summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2018-09-01 00:05:55 -0400
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>2018-09-03 06:07:22 +0200
commit20c36721747d8dd383115b1843f14f677177d97d (patch)
treed0705dfb63a63e542f5394422a50edebbc37afe8 /crypto
parent6bcfcf16bf6aef4f9ec267d8b86ae1bffd8deab9 (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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/crypto/ocsp/ocsp_cl.c b/crypto/ocsp/ocsp_cl.c
index f6101e1532..33ef9bbb20 100644
--- a/crypto/ocsp/ocsp_cl.c
+++ b/crypto/ocsp/ocsp_cl.c
@@ -167,6 +167,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.
*/