diff options
author | tb <> | 2018-08-24 20:22:15 +0000 |
---|---|---|
committer | tb <> | 2018-08-24 20:22:15 +0000 |
commit | a5eaaaed8fa0896775f96cf6b57259dad576fec1 (patch) | |
tree | 0581e2b3e7d7f9b09ce2e06c0e79d8c1ad83479a /src/lib/libcrypto/gost | |
parent | 5ace4c7530c972572b51f65ce6521aa5fdded0bc (diff) | |
download | openbsd-a5eaaaed8fa0896775f96cf6b57259dad576fec1.tar.gz openbsd-a5eaaaed8fa0896775f96cf6b57259dad576fec1.tar.bz2 openbsd-a5eaaaed8fa0896775f96cf6b57259dad576fec1.zip |
Add consts to EVP_PKEY_asn1_set_private()
Requires adding a const to the priv_decode() member of
EVP_PKEY_ASN1_METHOD and adjusting all *_priv_decode()
functions. All this is already documented this way.
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'src/lib/libcrypto/gost')
-rw-r--r-- | src/lib/libcrypto/gost/gostr341001_ameth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/gost/gostr341001_ameth.c b/src/lib/libcrypto/gost/gostr341001_ameth.c index 9b17b2e2c7..16295996dc 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.14 2018/08/24 20:17:33 tb Exp $ */ | 1 | /* $OpenBSD: gostr341001_ameth.c,v 1.15 2018/08/24 20:22:15 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 |
@@ -394,7 +394,7 @@ priv_print_gost01(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) | |||
394 | } | 394 | } |
395 | 395 | ||
396 | static int | 396 | static int |
397 | priv_decode_gost01(EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf) | 397 | priv_decode_gost01(EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf) |
398 | { | 398 | { |
399 | const unsigned char *pkey_buf = NULL, *p = NULL; | 399 | const unsigned char *pkey_buf = NULL, *p = NULL; |
400 | int priv_len = 0; | 400 | int priv_len = 0; |