summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/ameth_lib.c
diff options
context:
space:
mode:
authortb <>2018-08-24 20:22:15 +0000
committertb <>2018-08-24 20:22:15 +0000
commita5eaaaed8fa0896775f96cf6b57259dad576fec1 (patch)
tree0581e2b3e7d7f9b09ce2e06c0e79d8c1ad83479a /src/lib/libcrypto/asn1/ameth_lib.c
parent5ace4c7530c972572b51f65ce6521aa5fdded0bc (diff)
downloadopenbsd-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/asn1/ameth_lib.c')
-rw-r--r--src/lib/libcrypto/asn1/ameth_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c
index 50d8735ea7..505e986970 100644
--- a/src/lib/libcrypto/asn1/ameth_lib.c
+++ b/src/lib/libcrypto/asn1/ameth_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ameth_lib.c,v 1.18 2018/05/24 07:49:46 tb Exp $ */ 1/* $OpenBSD: ameth_lib.c,v 1.19 2018/08/24 20:22:15 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 */
@@ -396,7 +396,7 @@ EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth,
396 396
397void 397void
398EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, 398EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth,
399 int (*priv_decode)(EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf), 399 int (*priv_decode)(EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf),
400 int (*priv_encode)(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk), 400 int (*priv_encode)(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk),
401 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent, 401 int (*priv_print)(BIO *out, const EVP_PKEY *pkey, int indent,
402 ASN1_PCTX *pctx)) 402 ASN1_PCTX *pctx))