summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ocsp/ocsp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp.h')
-rw-r--r--src/lib/libcrypto/ocsp/ocsp.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp.h b/src/lib/libcrypto/ocsp/ocsp.h
index 316fb8ed93..554d164601 100644
--- a/src/lib/libcrypto/ocsp/ocsp.h
+++ b/src/lib/libcrypto/ocsp/ocsp.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp.h,v 1.16 2018/08/24 20:03:21 tb Exp $ */ 1/* $OpenBSD: ocsp.h,v 1.17 2021/10/24 13:50:14 tb Exp $ */
2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL 2/* Written by Tom Titchener <Tom_Titchener@groove.net> for the OpenSSL
3 * project. */ 3 * project. */
4 4
@@ -414,8 +414,23 @@ int OCSP_request_sign(OCSP_REQUEST *req, X509 *signer, EVP_PKEY *key,
414int OCSP_response_status(OCSP_RESPONSE *resp); 414int OCSP_response_status(OCSP_RESPONSE *resp);
415OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp); 415OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
416 416
417#if defined(LIBRESSL_NEW_API)
418const ASN1_OCTET_STRING *OCSP_resp_get0_signature(const OCSP_BASICRESP *bs);
419const X509_ALGOR *OCSP_resp_get0_tbs_sigalg(const OCSP_BASICRESP *bs);
420const OCSP_RESPDATA *OCSP_resp_get0_respdata(const OCSP_BASICRESP *bs);
421int OCSP_resp_get0_signer(OCSP_BASICRESP *bs, X509 **signer,
422 STACK_OF(X509) *extra_certs);
423#endif
424
417int OCSP_resp_count(OCSP_BASICRESP *bs); 425int OCSP_resp_count(OCSP_BASICRESP *bs);
418OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx); 426OCSP_SINGLERESP *OCSP_resp_get0(OCSP_BASICRESP *bs, int idx);
427#if defined(LIBRESSL_NEW_API)
428const ASN1_GENERALIZEDTIME *OCSP_resp_get0_produced_at(const OCSP_BASICRESP *bs);
429const STACK_OF(X509) *OCSP_resp_get0_certs(const OCSP_BASICRESP *bs);
430int OCSP_resp_get0_id(const OCSP_BASICRESP *bs,
431 const ASN1_OCTET_STRING **pid, const X509_NAME **pname);
432#endif
433
419int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last); 434int OCSP_resp_find(OCSP_BASICRESP *bs, OCSP_CERTID *id, int last);
420int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason, 435int OCSP_single_get0_status(OCSP_SINGLERESP *single, int *reason,
421 ASN1_GENERALIZEDTIME **revtime, ASN1_GENERALIZEDTIME **thisupd, 436 ASN1_GENERALIZEDTIME **revtime, ASN1_GENERALIZEDTIME **thisupd,