diff options
| author | tb <> | 2018-08-24 20:22:15 +0000 |
|---|---|---|
| committer | tb <> | 2018-08-24 20:22:15 +0000 |
| commit | b9a3c83c03543369636a655128b69d56eb619b83 (patch) | |
| tree | 0581e2b3e7d7f9b09ce2e06c0e79d8c1ad83479a /src/lib/libcrypto/asn1/ameth_lib.c | |
| parent | 4cdbdc5207fa48804d8ed3a7929a97ae5f9f466d (diff) | |
| download | openbsd-b9a3c83c03543369636a655128b69d56eb619b83.tar.gz openbsd-b9a3c83c03543369636a655128b69d56eb619b83.tar.bz2 openbsd-b9a3c83c03543369636a655128b69d56eb619b83.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.c | 4 |
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 | ||
| 397 | void | 397 | void |
| 398 | EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, | 398 | EVP_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)) |
