diff options
author | tb <> | 2018-08-24 20:22:15 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 20:22:15 +0000 |
commit | a5eaaaed8fa0896775f96cf6b57259dad576fec1 (patch) | |
tree | 0581e2b3e7d7f9b09ce2e06c0e79d8c1ad83479a /src/lib/libcrypto/dh/dh_ameth.c | |
parent | 5ace4c7530c972572b51f65ce6521aa5fdded0bc (diff) | |
download | openbsd-a5eaaaed8fa0896775f96cf6b57259dad576fec1.tar.gz openbsd-a5eaaaed8fa0896775f96cf6b57259dad576fec1.tar.bz2 openbsd-a5eaaaed8fa0896775f96cf6b57259dad576fec1.zip |
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 'src/lib/libcrypto/dh/dh_ameth.c')
-rw-r--r-- | src/lib/libcrypto/dh/dh_ameth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dh/dh_ameth.c b/src/lib/libcrypto/dh/dh_ameth.c index 6c6b8455fe..5054d17a3f 100644 --- a/src/lib/libcrypto/dh/dh_ameth.c +++ b/src/lib/libcrypto/dh/dh_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: dh_ameth.c,v 1.16 2018/08/24 20:17:33 tb Exp $ */ | 1 | /* $OpenBSD: dh_ameth.c,v 1.17 2018/08/24 20:22:15 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 | */ |
@@ -180,7 +180,7 @@ err: | |||
180 | */ | 180 | */ |
181 | 181 | ||
182 | static int | 182 | static int |
183 | dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) | 183 | dh_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) |
184 | { | 184 | { |
185 | const unsigned char *p, *pm; | 185 | const unsigned char *p, *pm; |
186 | int pklen, pmlen; | 186 | int pklen, pmlen; |