diff options
author | tb <> | 2018-08-24 20:17:33 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 20:17:33 +0000 |
commit | 5ace4c7530c972572b51f65ce6521aa5fdded0bc (patch) | |
tree | c6b54f8721555e8352418c0160ae38921c75aae1 /src/lib/libcrypto/dh/dh_ameth.c | |
parent | a9628cb893f117c74713ef7ddc64ea67e2f22ed7 (diff) | |
download | openbsd-5ace4c7530c972572b51f65ce6521aa5fdded0bc.tar.gz openbsd-5ace4c7530c972572b51f65ce6521aa5fdded0bc.tar.bz2 openbsd-5ace4c7530c972572b51f65ce6521aa5fdded0bc.zip |
After removing support for broken PKCS#8 formats (it was high time),
we can add const to PKCS8_pkey_get0(). In order for this to work,
we need to sprinkle a few consts here and there.
tested in a bulk 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 6fadfda2d3..6c6b8455fe 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.15 2018/05/01 19:01:27 tb Exp $ */ | 1 | /* $OpenBSD: dh_ameth.c,v 1.16 2018/08/24 20:17:33 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 | */ |
@@ -187,7 +187,7 @@ dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8) | |||
187 | int ptype; | 187 | int ptype; |
188 | const void *pval; | 188 | const void *pval; |
189 | const ASN1_STRING *pstr; | 189 | const ASN1_STRING *pstr; |
190 | X509_ALGOR *palg; | 190 | const X509_ALGOR *palg; |
191 | ASN1_INTEGER *privkey = NULL; | 191 | ASN1_INTEGER *privkey = NULL; |
192 | DH *dh = NULL; | 192 | DH *dh = NULL; |
193 | 193 | ||