EVP_PKEY_METH_GET_COUNT(3ossl)
π EVP_PKEY_METH_GET_COUNT π
okay bestie, welcome to the OpenSSL girlies club β this one's a 3ossl page, and it's literally all about enumerating public key methods. Like, going through the list one by one, iykyk.
β¨ NAME β¨
EVP_PKEY_meth_get_count, EVP_PKEY_meth_get0, EVP_PKEY_meth_get0_info β enumerate public key methods π
πΈ SYNOPSIS πΈ
#include <openssl/evp.h>
so here's the tea π« β these functions have been deprecated since OpenSSL 3.0, and you can hide them entirely by defining OPENSSL_API_COMPAT with a suitable version value. wanna know what "suitable" means? check openssl_user_macros(7), she explains it π
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 π¦
β οΈ okay so real talk first: all of the functions described on this page are deprecated. applications should instead use the OSSL_PROVIDER APIs. that's the move, bestie β¨
EVP_PKEY_meth_count()β returns a count of the number of public key methods available. and it's not gatekeeping either: it includes standard methods and any methods added by the application. so inclusive πEVP_PKEY_meth_get0()β returns the public key method idx. the value of idx must be between zero andEVP_PKEY_meth_get_count() - 1. (yes, that's a hard requirement, no cap.)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()β returns a public key method, orNULLif idx is out of range. sad but fair πEVP_PKEY_meth_get0_info()β does not return a value. she's giving void energy, and honestly? iconic π
π SEE ALSO π
β HISTORY β
all of these functions were deprecated in OpenSSL 3.0. periodt.
π 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>.
okay that's the whole page, no notes π«Ά this was version 3.5.0, dated 2026-09-25 β mwah, bye bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms