diff options
author | tb <> | 2018-08-24 20:17:33 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 20:17:33 +0000 |
commit | 5ace4c7530c972572b51f65ce6521aa5fdded0bc (patch) | |
tree | c6b54f8721555e8352418c0160ae38921c75aae1 /src/lib/libcrypto/gost | |
parent | a9628cb893f117c74713ef7ddc64ea67e2f22ed7 (diff) | |
download | openbsd-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/gost')
-rw-r--r-- | src/lib/libcrypto/gost/gostr341001_ameth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/gost/gostr341001_ameth.c b/src/lib/libcrypto/gost/gostr341001_ameth.c index 086e371057..9b17b2e2c7 100644 --- a/src/lib/libcrypto/gost/gostr341001_ameth.c +++ b/src/lib/libcrypto/gost/gostr341001_ameth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gostr341001_ameth.c,v 1.13 2018/06/10 14:39:49 jsing Exp $ */ | 1 | /* $OpenBSD: gostr341001_ameth.c,v 1.14 2018/08/24 20:17:33 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 3 | * Copyright (c) 2014 Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> |
4 | * Copyright (c) 2005-2006 Cryptocom LTD | 4 | * Copyright (c) 2005-2006 Cryptocom LTD |
@@ -400,8 +400,8 @@ priv_decode_gost01(EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf) | |||
400 | int priv_len = 0; | 400 | int priv_len = 0; |
401 | BIGNUM *pk_num = NULL; | 401 | BIGNUM *pk_num = NULL; |
402 | int ret = 0; | 402 | int ret = 0; |
403 | X509_ALGOR *palg = NULL; | 403 | const X509_ALGOR *palg = NULL; |
404 | ASN1_OBJECT *palg_obj = NULL; | 404 | const ASN1_OBJECT *palg_obj = NULL; |
405 | ASN1_INTEGER *priv_key = NULL; | 405 | ASN1_INTEGER *priv_key = NULL; |
406 | GOST_KEY *ec; | 406 | GOST_KEY *ec; |
407 | int ptype = V_ASN1_UNDEF; | 407 | int ptype = V_ASN1_UNDEF; |