diff options
| author | tb <> | 2018-05-13 10:30:52 +0000 |
|---|---|---|
| committer | tb <> | 2018-05-13 10:30:52 +0000 |
| commit | fc0aba9917e00098e2c512fa5a6f10592381bdaa (patch) | |
| tree | ba7f15031b7f14334671de28454fe74ad86c65eb /src | |
| parent | 1aae5537aedefe0d620aa744050f1fda2d611880 (diff) | |
| download | openbsd-fc0aba9917e00098e2c512fa5a6f10592381bdaa.tar.gz openbsd-fc0aba9917e00098e2c512fa5a6f10592381bdaa.tar.bz2 openbsd-fc0aba9917e00098e2c512fa5a6f10592381bdaa.zip | |
Add const qualifier to the X509_NAME *, ASN1_BIT_STRING *, and
ASN1_INTEGER * arguments of OCSP_cert_id_new(3).
tested in a bulk build by sthen
ok jsing (as part of a larger diff)
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp.h | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/ocsp/ocsp_lib.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ocsp/ocsp.h b/src/lib/libcrypto/ocsp/ocsp.h index 397e07aec6..80b108de85 100644 --- a/src/lib/libcrypto/ocsp/ocsp.h +++ b/src/lib/libcrypto/ocsp/ocsp.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: ocsp.h,v 1.13 2018/05/13 10:28:04 tb Exp $ */ | 1 | /* $OpenBSD: ocsp.h,v 1.14 2018/05/13 10:30:52 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 | ||
| @@ -394,8 +394,8 @@ int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx, const char *name, | |||
| 394 | 394 | ||
| 395 | OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer); | 395 | OCSP_CERTID *OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer); |
| 396 | 396 | ||
| 397 | OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, X509_NAME *issuerName, | 397 | OCSP_CERTID *OCSP_cert_id_new(const EVP_MD *dgst, const X509_NAME *issuerName, |
| 398 | ASN1_BIT_STRING* issuerKey, ASN1_INTEGER *serialNumber); | 398 | const ASN1_BIT_STRING *issuerKey, const ASN1_INTEGER *serialNumber); |
| 399 | 399 | ||
| 400 | OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid); | 400 | OCSP_ONEREQ *OCSP_request_add0_id(OCSP_REQUEST *req, OCSP_CERTID *cid); |
| 401 | 401 | ||
diff --git a/src/lib/libcrypto/ocsp/ocsp_lib.c b/src/lib/libcrypto/ocsp/ocsp_lib.c index d56a002096..f9a8d60bc1 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.20 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: ocsp_lib.c,v 1.21 2018/05/13 10:30:52 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 | ||
| @@ -99,8 +99,8 @@ OCSP_cert_to_id(const EVP_MD *dgst, X509 *subject, X509 *issuer) | |||
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | OCSP_CERTID * | 101 | OCSP_CERTID * |
| 102 | OCSP_cert_id_new(const EVP_MD *dgst, X509_NAME *issuerName, | 102 | OCSP_cert_id_new(const EVP_MD *dgst, const X509_NAME *issuerName, |
| 103 | ASN1_BIT_STRING* issuerKey, ASN1_INTEGER *serialNumber) | 103 | const ASN1_BIT_STRING *issuerKey, const ASN1_INTEGER *serialNumber) |
| 104 | { | 104 | { |
| 105 | int nid; | 105 | int nid; |
| 106 | unsigned int i; | 106 | unsigned int i; |
