EVP_PKEY_meth_get_count.3ssl man page

EVP_PKEY_meth_get_count, EVP_PKEY_meth_get0, EVP_PKEY_meth_get0_info — enumerate public key methods

Synopsis

 #include <openssl/evp.h>

 size_t EVP_PKEY_meth_get_count(void);
 const EVP_PKEY_METHOD *EVP_PKEY_meth_get0(size_t idx);
 void EVP_PKEY_meth_get0_info(int *ppkey_id, int *pflags,
                              const EVP_PKEY_METHOD *meth);

Description

EVP_PKEY_meth_count() returns a count of the number of public key methods available: it includes standard methods and any methods added by the application.

EVP_PKEY_meth_get0() returns the public key method idx. The value of idx must be between zero and EVP_PKEY_meth_get_count() - 1.

EVP_PKEY_meth_get0_info() returns the public key ID (a NID) and any flags associated with the public key method *meth.

Return Values

EVP_PKEY_meth_count() returns the number of available public key methods.

EVP_PKEY_meth_get0() return a public key method or NULL if idx is out of range.

EVP_PKEY_meth_get0_info() does not return a value.

See Also

EVP_PKEY_new(3)

Referenced By

The man pages EVP_PKEY_meth_get0.3ssl(3) and EVP_PKEY_meth_get0_info.3ssl(3) are aliases of EVP_PKEY_meth_get_count.3ssl(3).

2019-11-21 1.1.1d OpenSSL