diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2017-07-25 18:48:26 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-07-30 00:04:09 +0200 |
commit | 48ed9c23b052d3fed465967eb4193a7c87d0a24d (patch) | |
tree | bd1b4eb1c03d873e6b86c25df553c6a7a9351761 /include | |
parent | Add some test coverage for OPENSSL_secure_clear_free (diff) | |
download | openssl-48ed9c23b052d3fed465967eb4193a7c87d0a24d.tar.xz openssl-48ed9c23b052d3fed465967eb4193a7c87d0a24d.zip |
Add public key method enumeration function.
Add functions to enumerate public key methods. Add test to ensure table
is in the correct order.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4015)
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/evp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/evp.h b/include/openssl/evp.h index f935e99eaf..af7043b2ea 100644 --- a/include/openssl/evp.h +++ b/include/openssl/evp.h @@ -1263,6 +1263,8 @@ void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags, void EVP_PKEY_meth_copy(EVP_PKEY_METHOD *dst, const EVP_PKEY_METHOD *src); void EVP_PKEY_meth_free(EVP_PKEY_METHOD *pmeth); int EVP_PKEY_meth_add0(const EVP_PKEY_METHOD *pmeth); +size_t EVP_PKEY_meth_get_count(void); +const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx); EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e); EVP_PKEY_CTX *EVP_PKEY_CTX_new_id(int id, ENGINE *e); |