summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Steinbiss <sascha@steinbiss.name>2016-11-08 10:16:45 +0100
committerRich Salz <rsalz@openssl.org>2017-06-21 15:01:54 -0400
commitdb17e43d882ecde217e1dce4a2b8c76c3ed134bf (patch)
tree151cc0305b4d1955e33138224868069e85269962 /include
parent15b1688ac9d1f31ad87d3390dabed42061d90dd8 (diff)
Add OCSP_resp_get1_id() accessor
Adding a get1 style accessor as brought up in mailing list post https://mta.openssl.org/pipermail/openssl-users/2016-November/004796.html Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1876)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/ocsp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/openssl/ocsp.h b/include/openssl/ocsp.h
index 6b1a4903f8..0937d972be 100644
--- a/include/openssl/ocsp.h
+++ b/include/openssl/ocsp.h
@@ -221,6 +221,9 @@ const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
const ASN1_OCTET_STRING **pid,
const X509_NAME **pname);
+int OCSP_resp_get1_id(const OCSP_BASICRESP *bs,
+ ASN1_OCTET_STRING **pid,
+ X509_NAME **pname);
int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,