EVP_PKEY_METH_GET_COUNT(3ossl)
π EVP_PKEY_METH_GET_COUNT π
okay bestie, welcome to the 3ossl page for EVP_PKEY_meth_get_count, EVP_PKEY_meth_get0 and EVP_PKEY_meth_get0_info β the little trio that lets you enumerate public key methods. yes, all three, they share one page, they're a package deal π«Ά
β¨ NAME β¨
EVP_PKEY_meth_get_count, EVP_PKEY_meth_get0, EVP_PKEY_meth_get0_info β enumerate public key methods π
πΈ SYNOPSIS πΈ
#include <openssl/evp.h>
β οΈ heads up bestie: the functions below have been deprecated since OpenSSL 3.0, and you can hide them entirely by definingOPENSSL_API_COMPATwith a suitable version value β go peek atopenssl_user_macros(7)for that.
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 π¦
all of the functions described on this page are deprecated. every single one. applications should instead use the OSSL_PROVIDER APIs. periodt. π
EVP_PKEY_meth_count() returns a count of the number of public key methods available β and it's inclusive like a good friend: 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. stay in your lane bestie, that range is the range π
EVP_PKEY_meth_get0_info() returns the public key ID (a NID) and any flags associated with the public key method *meth. two things at once, multitasking icon π
β RETURN VALUES β
EVP_PKEY_meth_count()returns the number of available public key methods. a whole number, iconic.EVP_PKEY_meth_get0()return a public key method orNULLifidxis out of range. yes the original says "return" and not "returns", we don't make the rules, we just preserve them πEVP_PKEY_meth_get0_info()does not return a value. it's giving void energy. nothing. silence. π
π SEE ALSO π
π HISTORY π
all of these functions were deprecated in OpenSSL 3.0. rip to their relevance, they still live in the source tho π―οΈ
π COPYRIGHT π
Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
and that's the whole page, bestie!! this was the OpenSSL 3.5.9 version, dated 2026-09-29, filed under EVP_PKEY_METH_GET_COUNT(3ossl) β mwah, go read EVP_PKEY_new(3) next, love u, bye πβ¨π¦
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms