diff options
| author | tb <> | 2018-08-24 20:17:33 +0000 |
|---|---|---|
| committer | tb <> | 2018-08-24 20:17:33 +0000 |
| commit | 4cdbdc5207fa48804d8ed3a7929a97ae5f9f466d (patch) | |
| tree | c6b54f8721555e8352418c0160ae38921c75aae1 /src/lib/libcrypto/ec | |
| parent | 642448cdfb340ed6910f8211bae01c72179a8256 (diff) | |
| download | openbsd-4cdbdc5207fa48804d8ed3a7929a97ae5f9f466d.tar.gz openbsd-4cdbdc5207fa48804d8ed3a7929a97ae5f9f466d.tar.bz2 openbsd-4cdbdc5207fa48804d8ed3a7929a97ae5f9f466d.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.c | 4 |
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; |
