summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ocsp/ocsp_ht.c
diff options
context:
space:
mode:
authortb <>2018-05-13 10:42:03 +0000
committertb <>2018-05-13 10:42:03 +0000
commitdeae85f1f8dc89a0dd06e5359e6bdeba054cb37a (patch)
treebf4b0aac67c814a96ebb655762cc73f1acf41c5e /src/lib/libcrypto/ocsp/ocsp_ht.c
parent198462ba6ab3bc7513683c3a33b9d87b71378fa5 (diff)
downloadopenbsd-deae85f1f8dc89a0dd06e5359e6bdeba054cb37a.tar.gz
openbsd-deae85f1f8dc89a0dd06e5359e6bdeba054cb37a.tar.bz2
openbsd-deae85f1f8dc89a0dd06e5359e6bdeba054cb37a.zip
Add const qualifier to the path and url{,s} parameters of
OCSP_crlID_new(3), OCSP_parse_url(3), OCSP_sendreq_bio(3), OCSP_sendreq_new(3), and OCSP_url_svcloc_new(3). tested in a bulk build by sthen ok jsing (as part of a larger diff)
Diffstat (limited to 'src/lib/libcrypto/ocsp/ocsp_ht.c')
-rw-r--r--src/lib/libcrypto/ocsp/ocsp_ht.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_ht.c b/src/lib/libcrypto/ocsp/ocsp_ht.c
index b9c969928a..255f890397 100644
--- a/src/lib/libcrypto/ocsp/ocsp_ht.c
+++ b/src/lib/libcrypto/ocsp/ocsp_ht.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp_ht.c,v 1.24 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: ocsp_ht.c,v 1.25 2018/05/13 10:42:03 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2006. 3 * project 2006.
4 */ 4 */
@@ -149,7 +149,7 @@ OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx, const char *name,
149} 149}
150 150
151OCSP_REQ_CTX * 151OCSP_REQ_CTX *
152OCSP_sendreq_new(BIO *io, char *path, OCSP_REQUEST *req, int maxline) 152OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req, int maxline)
153{ 153{
154 OCSP_REQ_CTX *rctx; 154 OCSP_REQ_CTX *rctx;
155 155
@@ -440,7 +440,7 @@ next_line:
440 440
441/* Blocking OCSP request handler: now a special case of non-blocking I/O */ 441/* Blocking OCSP request handler: now a special case of non-blocking I/O */
442OCSP_RESPONSE * 442OCSP_RESPONSE *
443OCSP_sendreq_bio(BIO *b, char *path, OCSP_REQUEST *req) 443OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
444{ 444{
445 OCSP_RESPONSE *resp = NULL; 445 OCSP_RESPONSE *resp = NULL;
446 OCSP_REQ_CTX *ctx; 446 OCSP_REQ_CTX *ctx;