summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec
diff options
context:
space:
mode:
authortb <>2018-08-24 20:17:33 +0000
committertb <>2018-08-24 20:17:33 +0000
commit5ace4c7530c972572b51f65ce6521aa5fdded0bc (patch)
treec6b54f8721555e8352418c0160ae38921c75aae1 /src/lib/libcrypto/ec
parenta9628cb893f117c74713ef7ddc64ea67e2f22ed7 (diff)
downloadopenbsd-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/ec')
-rw-r--r--src/lib/libcrypto/ec/ec_ameth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_ameth.c b/src/lib/libcrypto/ec/ec_ameth.c
index 4c4542dee5..0071826dea 100644
--- a/src/lib/libcrypto/ec/ec_ameth.c
+++ b/src/lib/libcrypto/ec/ec_ameth.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_ameth.c,v 1.23 2018/07/15 16:27:39 tb Exp $ */ 1/* $OpenBSD: ec_ameth.c,v 1.24 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 */
@@ -238,7 +238,7 @@ eckey_priv_decode(EVP_PKEY * pkey, PKCS8_PRIV_KEY_INFO * p8)
238 const void *pval; 238 const void *pval;
239 int ptype, pklen; 239 int ptype, pklen;
240 EC_KEY *eckey = NULL; 240 EC_KEY *eckey = NULL;
241 X509_ALGOR *palg; 241 const X509_ALGOR *palg;
242 242
243 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8)) 243 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8))
244 return 0; 244 return 0;