summaryrefslogtreecommitdiffstats
path: root/crypto/ocsp/ocsp_srv.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-02-26 14:17:58 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-02-26 14:17:58 +0000
commitfafc7f987563ee2ea199ef27608f5a25a7cbe253 (patch)
tree9cd72b61d3b19287753753274f8b4fb64fd8ca2e /crypto/ocsp/ocsp_srv.c
parentd88a26c4892152c326d8b4ca80a0cc59fe8c8d51 (diff)
Enhance OCSP_request_verify() so it finds the signers certificate
properly and supports several flags.
Diffstat (limited to 'crypto/ocsp/ocsp_srv.c')
-rw-r--r--crypto/ocsp/ocsp_srv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/ocsp/ocsp_srv.c b/crypto/ocsp/ocsp_srv.c
index 3ecbfc8d1e..fffa134e75 100644
--- a/crypto/ocsp/ocsp_srv.c
+++ b/crypto/ocsp/ocsp_srv.c
@@ -96,6 +96,12 @@ int OCSP_id_get0_info(ASN1_OCTET_STRING **piNameHash, ASN1_OBJECT **pmd,
return 1;
}
+int OCSP_request_is_signed(OCSP_REQUEST *req)
+ {
+ if(req->optionalSignature) return 1;
+ return 0;
+ }
+
/* Create an OCSP response and encode an optional basic response */
OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs)
{