summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-05-13 06:35:10 +0000
committertb <tb@openbsd.org>2018-05-13 06:35:10 +0000
commitfff825e1214dcade98c31bd38304d26f3b4ad440 (patch)
treeba3df8f160898e06c17768bea6e652d89b20439d /lib
parentCleanup IPsec common input error handling with consistent goto drop. (diff)
downloadwireguard-openbsd-fff825e1214dcade98c31bd38304d26f3b4ad440.tar.xz
wireguard-openbsd-fff825e1214dcade98c31bd38304d26f3b4ad440.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 'lib')
-rw-r--r--lib/libcrypto/evp/evp.h5
-rw-r--r--lib/libcrypto/evp/m_sigver.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/libcrypto/evp/evp.h b/lib/libcrypto/evp/evp.h
index 817d4fb7349..fd9d4ed263e 100644
--- a/lib/libcrypto/evp/evp.h
+++ b/lib/libcrypto/evp/evp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: evp.h,v 1.59 2018/05/02 15:51:41 tb Exp $ */
+/* $OpenBSD: evp.h,v 1.60 2018/05/13 06:35:10 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -617,7 +617,8 @@ int EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen);
int EVP_DigestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey);
-int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen);
+int EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig,
+ size_t siglen);
int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,
const unsigned char *ek, int ekl, const unsigned char *iv, EVP_PKEY *priv);
diff --git a/lib/libcrypto/evp/m_sigver.c b/lib/libcrypto/evp/m_sigver.c
index 6e955d94806..9e313c36308 100644
--- a/lib/libcrypto/evp/m_sigver.c
+++ b/lib/libcrypto/evp/m_sigver.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m_sigver.c,v 1.6 2017/01/29 17:49:23 beck Exp $ */
+/* $OpenBSD: m_sigver.c,v 1.7 2018/05/13 06:35:10 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -166,7 +166,7 @@ EVP_DigestSignFinal(EVP_MD_CTX *ctx, unsigned char *sigret, size_t *siglen)
}
int
-EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, unsigned char *sig, size_t siglen)
+EVP_DigestVerifyFinal(EVP_MD_CTX *ctx, const unsigned char *sig, size_t siglen)
{
EVP_MD_CTX tmp_ctx;
unsigned char md[EVP_MAX_MD_SIZE];