diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-08-24 20:22:16 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-08-24 20:22:16 +0000 |
commit | 938b5d06bc730e97d702b97276e77ee539cc8d9b (patch) | |
tree | 99a15532f2145cf1be9016a8c651dcea3ffc9db1 /lib/libcrypto/dh | |
parent | d2ff36de9dd43a186f5f8ebb8c68c0d41e60949d (diff) |
Add consts to EVP_PKEY_asn1_set_private()
Requires adding a const to the priv_decode() member of
EVP_PKEY_ASN1_METHOD and adjusting all *_priv_decode()
functions. All this is already documented this way.
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'lib/libcrypto/dh')
-rw-r--r-- | lib/libcrypto/dh/dh_ameth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/dh/dh_ameth.c b/lib/libcrypto/dh/dh_ameth.c index 6c6b8455fe3..5054d17a3f4 100644 --- a/lib/libcrypto/dh/dh_ameth.c +++ b/lib/libcrypto/dh/dh_ameth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_ameth.c,v 1.16 2018/08/24 20:17:33 tb Exp $ */ +/* $OpenBSD: dh_ameth.c,v 1.17 2018/08/24 20:22:15 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -180,7 +180,7 @@ err: */ static int -dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) +dh_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) { const unsigned char *p, *pm; int pklen, pmlen; |