diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-13 10:42:04 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-13 10:42:04 +0000 |
commit | 2dc6113f0919e72d88d36fc4e0ab8809b0058da9 (patch) | |
tree | 69546ae0c7eeeabf7660460ea3283a7636c7ec65 /lib/libcrypto/ocsp/ocsp_ext.c | |
parent | c0172fd6bdfb7eac130c3f14ccb08c7b4ea362c7 (diff) |
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 'lib/libcrypto/ocsp/ocsp_ext.c')
-rw-r--r-- | lib/libcrypto/ocsp/ocsp_ext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/ocsp/ocsp_ext.c b/lib/libcrypto/ocsp/ocsp_ext.c index 16cd70cad60..8af4a422aee 100644 --- a/lib/libcrypto/ocsp/ocsp_ext.c +++ b/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 <Tom_Titchener@groove.net> 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; |