diff options
author | tb <> | 2022-06-27 12:36:06 +0000 |
---|---|---|
committer | tb <> | 2022-06-27 12:36:06 +0000 |
commit | 89b19fa26965d5b4d261248d57a3cd0650dc01e1 (patch) | |
tree | 1ce3c6ef198c92eb3730b767a8f90f5a0e5f1ac1 /src/lib/libcrypto/asn1/ameth_lib.c | |
parent | 1f814fdc3f1d1d90cbcbff70c5aadcf9da362c34 (diff) | |
download | openbsd-89b19fa26965d5b4d261248d57a3cd0650dc01e1.tar.gz openbsd-89b19fa26965d5b4d261248d57a3cd0650dc01e1.tar.bz2 openbsd-89b19fa26965d5b4d261248d57a3cd0650dc01e1.zip |
Prepare to provide EVP_PKEY_security_bits()
This also provides a pkey_security_bits member to the PKEY ASN.1 methods
and a corresponding setter EVP_PKEY_asn1_set_security_bits().
ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/ameth_lib.c')
-rw-r--r-- | src/lib/libcrypto/asn1/ameth_lib.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/ameth_lib.c b/src/lib/libcrypto/asn1/ameth_lib.c index 8ff5a35d78..313440e06a 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.25 2022/01/10 12:10:26 tb Exp $ */ | 1 | /* $OpenBSD: ameth_lib.c,v 1.26 2022/06/27 12:36:05 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 | */ |
@@ -431,6 +431,13 @@ EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, | |||
431 | } | 431 | } |
432 | 432 | ||
433 | void | 433 | void |
434 | EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth, | ||
435 | int (*pkey_security_bits)(const EVP_PKEY *pkey)) | ||
436 | { | ||
437 | ameth->pkey_security_bits = pkey_security_bits; | ||
438 | } | ||
439 | |||
440 | void | ||
434 | EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth, | 441 | EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth, |
435 | int (*pkey_check)(const EVP_PKEY *pk)) | 442 | int (*pkey_check)(const EVP_PKEY *pk)) |
436 | { | 443 | { |