summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/dh
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-05-01 19:01:27 +0000
committertb <tb@openbsd.org>2018-05-01 19:01:27 +0000
commit0267c20633f03671d9ebeb595083d24fca7b3a7c (patch)
treed4e5e2995b5a7eb056598a951322930dc8533eb4 /lib/libcrypto/dh
parentMention RFC 7217 and RFC 7772 (diff)
downloadwireguard-openbsd-0267c20633f03671d9ebeb595083d24fca7b3a7c.tar.xz
wireguard-openbsd-0267c20633f03671d9ebeb595083d24fca7b3a7c.zip
Convert a handful of X509_*() functions to take const as in OpenSSL.
tested in a bulk by sthen ok jsing
Diffstat (limited to 'lib/libcrypto/dh')
-rw-r--r--lib/libcrypto/dh/dh_ameth.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/dh/dh_ameth.c b/lib/libcrypto/dh/dh_ameth.c
index 0402092a4ff..6fadfda2d38 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.14 2017/01/29 17:49:22 beck Exp $ */
+/* $OpenBSD: dh_ameth.c,v 1.15 2018/05/01 19:01:27 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 2006.
*/
@@ -78,8 +78,8 @@ dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
const unsigned char *p, *pm;
int pklen, pmlen;
int ptype;
- void *pval;
- ASN1_STRING *pstr;
+ const void *pval;
+ const ASN1_STRING *pstr;
X509_ALGOR *palg;
ASN1_INTEGER *public_key = NULL;
DH *dh = NULL;
@@ -185,8 +185,8 @@ dh_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
const unsigned char *p, *pm;
int pklen, pmlen;
int ptype;
- void *pval;
- ASN1_STRING *pstr;
+ const void *pval;
+ const ASN1_STRING *pstr;
X509_ALGOR *palg;
ASN1_INTEGER *privkey = NULL;
DH *dh = NULL;