From e17362dedac5a806b1628b3d01f5704dca288376 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 13 May 2018 10:42:03 +0000 Subject: 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) --- src/lib/libcrypto/ocsp/ocsp_ext.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/ocsp/ocsp_ext.c') diff --git a/src/lib/libcrypto/ocsp/ocsp_ext.c b/src/lib/libcrypto/ocsp/ocsp_ext.c index 16cd70cad6..8af4a422ae 100644 --- a/src/lib/libcrypto/ocsp/ocsp_ext.c +++ b/src/lib/libcrypto/ocsp/ocsp_ext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ocsp_ext.c,v 1.16 2018/05/13 10:28:04 tb Exp $ */ +/* $OpenBSD: ocsp_ext.c,v 1.17 2018/05/13 10:42:03 tb Exp $ */ /* Written by Tom Titchener for the OpenSSL * project. */ @@ -436,7 +436,7 @@ OCSP_copy_nonce(OCSP_BASICRESP *resp, OCSP_REQUEST *req) } X509_EXTENSION * -OCSP_crlID_new(char *url, long *n, char *tim) +OCSP_crlID_new(const char *url, long *n, char *tim) { X509_EXTENSION *x = NULL; OCSP_CRLID *cid = NULL; @@ -518,7 +518,7 @@ err: * method forces NID_ad_ocsp and uniformResourceLocator [6] IA5String. */ X509_EXTENSION * -OCSP_url_svcloc_new(X509_NAME* issuer, char **urls) +OCSP_url_svcloc_new(X509_NAME* issuer, const char **urls) { X509_EXTENSION *x = NULL; ASN1_IA5STRING *ia5 = NULL; -- cgit v1.2.3-55-g6feb