summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/dh
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-08-24 20:17:33 +0000
committertb <tb@openbsd.org>2018-08-24 20:17:33 +0000
commiteb5c5266934eca378b83a81d22f0c1ac7f26f093 (patch)
treed285240e675e08285b837e7c670068a1d0cec06f /lib/libcrypto/dh
parentThe broken pkcs8 formats generated by openssl pkcs -{embed,nooct,nsdb} (diff)
downloadwireguard-openbsd-eb5c5266934eca378b83a81d22f0c1ac7f26f093.tar.xz
wireguard-openbsd-eb5c5266934eca378b83a81d22f0c1ac7f26f093.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 'lib/libcrypto/dh')
-rw-r--r--lib/libcrypto/dh/dh_ameth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/dh/dh_ameth.c b/lib/libcrypto/dh/dh_ameth.c
index 6fadfda2d38..6c6b8455fe3 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.15 2018/05/01 19:01:27 tb Exp $ */
+/* $OpenBSD: dh_ameth.c,v 1.16 2018/08/24 20:17:33 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -187,7 +187,7 @@ dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
int ptype;
const void *pval;
const ASN1_STRING *pstr;
- X509_ALGOR *palg;
+ const X509_ALGOR *palg;
ASN1_INTEGER *privkey = NULL;
DH *dh = NULL;