summaryrefslogtreecommitdiff
path: root/lib/libcrypto/dh/dh_ameth.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2018-05-01 19:01:29 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2018-05-01 19:01:29 +0000
commit92d0289ba95ae16b9356d9efe6b5e0fcf78070b6 (patch)
tree313f6654d33a0813e800a0c3cbeeba8d98f7e637 /lib/libcrypto/dh/dh_ameth.c
parenta4aa0d33af5ca786b4ad654aef8eeb7672d73f20 (diff)
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/dh_ameth.c')
-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;