diff options
author | tb <> | 2018-05-13 10:42:03 +0000 |
---|---|---|
committer | tb <> | 2018-05-13 10:42:03 +0000 |
commit | e17362dedac5a806b1628b3d01f5704dca288376 (patch) | |
tree | bf4b0aac67c814a96ebb655762cc73f1acf41c5e /src/lib/libcrypto/ocsp/ocsp_lib.c | |
parent | fdf29f64a94d4bac959154f23ece0607d1b92351 (diff) | |
download | openbsd-e17362dedac5a806b1628b3d01f5704dca288376.tar.gz openbsd-e17362dedac5a806b1628b3d01f5704dca288376.tar.bz2 openbsd-e17362dedac5a806b1628b3d01f5704dca288376.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_lib.c')
-rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_lib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp_lib.c b/src/lib/libcrypto/ocsp/ocsp_lib.c index f9a8d60bc1..0d95a9d0ec 100644 --- a/src/lib/libcrypto/ocsp/ocsp_lib.c +++ b/src/lib/libcrypto/ocsp/ocsp_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ocsp_lib.c,v 1.21 2018/05/13 10:30:52 tb Exp $ */ | 1 | /* $OpenBSD: ocsp_lib.c,v 1.22 2018/05/13 10:42:03 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 | ||
@@ -180,7 +180,8 @@ OCSP_id_cmp(OCSP_CERTID *a, OCSP_CERTID *b) | |||
180 | * it is SSL. | 180 | * it is SSL. |
181 | */ | 181 | */ |
182 | int | 182 | int |
183 | OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pssl) | 183 | OCSP_parse_url(const char *url, char **phost, char **pport, char **ppath, |
184 | int *pssl) | ||
184 | { | 185 | { |
185 | char *host, *path, *port, *tmp; | 186 | char *host, *path, *port, *tmp; |
186 | 187 | ||