diff options
| author | tb <> | 2018-05-13 06:35:10 +0000 |
|---|---|---|
| committer | tb <> | 2018-05-13 06:35:10 +0000 |
| commit | ed903a858273ee9f546469d168676749236c7401 (patch) | |
| tree | edaf48c6a2aa3087fdc26f36280b49dbd6454406 /src | |
| parent | 68e1bfcf65fc8343d3ae334a491e1fe72c2c43c4 (diff) | |
| download | openbsd-ed903a858273ee9f546469d168676749236c7401.tar.gz openbsd-ed903a858273ee9f546469d168676749236c7401.tar.bz2 openbsd-ed903a858273ee9f546469d168676749236c7401.zip | |
Add a const qualifier to the second argument of EVP_DigestVerifyFinal(3).
tested in a bulk build by sthen
ok beck (as part of a larger diff)
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libcrypto/evp/evp.h | 5 | ||||
| -rw-r--r-- | src/lib/libcrypto/evp/m_sigver.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/evp/evp.h b/src/lib/libcrypto/evp/evp.h index 817d4fb734..fd9d4ed263 100644 --- a/src/lib/libcrypto/evp/evp.h +++ b/src/lib/libcrypto/evp/evp.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: evp.h,v 1.59 2018/05/02 15:51:41 tb Exp $ */ | 1 | /* $OpenBSD: evp.h,v 1.60 2018/05/13 06:35:10 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -617,7 +617,8 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen); | |||
| 617 | 617 | ||
| 618 | int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, | 618 | int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, |
| 619 | const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey); | 619 | const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey); |
| 620 | int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen); | 620 | int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, |
| 621 | size_t siglen); | ||
| 621 | 622 | ||
| 622 | int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | 623 | int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, |
| 623 | const unsigned char *ek, int ekl, const unsigned char *iv, EVP_PKEY *priv); | 624 | const unsigned char *ek, int ekl, const unsigned char *iv, EVP_PKEY *priv); |
diff --git a/src/lib/libcrypto/evp/m_sigver.c b/src/lib/libcrypto/evp/m_sigver.c index 6e955d9480..9e313c3630 100644 --- a/src/lib/libcrypto/evp/m_sigver.c +++ b/src/lib/libcrypto/evp/m_sigver.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: m_sigver.c,v 1.6 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: m_sigver.c,v 1.7 2018/05/13 06:35:10 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 | */ |
| @@ -166,7 +166,7 @@ EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen) | |||
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | int | 168 | int |
| 169 | EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen) | 169 | EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen) |
| 170 | { | 170 | { |
| 171 | EVP_MD_CTX tmp_ctx; | 171 | EVP_MD_CTX tmp_ctx; |
| 172 | unsigned char md[EVP_MAX_MD_SIZE]; | 172 | unsigned char md[EVP_MAX_MD_SIZE]; |
