EVP_PKEY_CTX_GET0_LIBCTX(3SSL)
π EVP_PKEY_CTX_GET0_LIBCTX π
okay bestie, welcome to the OpenSSL manual, section 3SSL, and this one's called EVP_PKEY_CTX_GET0_LIBCTX. yes the name is a whole mouthful, we're getting through it together π«Ά
β¨ NAME β¨
EVP_PKEY_CTX_get0_libctx, EVP_PKEY_CTX_get0_propq, EVP_PKEY_CTX_get0_provider β the lil functions that get ~diverse information~ out of an EVP_PKEY_CTX. it's giving detective energy π
πΈ SYNOPSIS πΈ
#include <openssl/evp.h>
OSSL_LIB_CTX *EVP_PKEY_CTX_get0_libctx(EVP_PKEY_CTX *ctx);
const char *EVP_PKEY_CTX_get0_propq(const EVP_PKEY_CTX *ctx);
const OSSL_PROVIDER *EVP_PKEY_CTX_get0_provider(const EVP_PKEY_CTX *ctx);
π¦ DESCRIPTION π¦
so EVP_PKEY_CTX_get0_libctx() and EVP_PKEY_CTX_get0_propq() hand you the OSSL_LIB_CTX and the property query string values respectively β the exact ones that got associated with the EVP_PKEY_CTX back when it was constructed. it's like, the receipts of how your ctx was born π
and EVP_PKEY_CTX_get0_provider() hits you with the provider associated with the ongoing EVP_PKEY_CTX operation. currently-in-progress vibes only π
π RETURN VALUES π
EVP_PKEY_CTX_get0_libctx() and EVP_PKEY_CTX_get0_propq() return the OSSL_LIB_CTX and property query string associated with the EVP_PKEY_CTX β or NULL if they are not set.
π¨ bestie listen: the returned values should not be freed by the caller. do not touch. hands off. not yours. π
EVP_PKEY_CTX_get0_provider() returns a provider if an operation performed by a provider is ongoing, otherwise NULL.
π SEE ALSO π
β HISTORY β
all of these functions were added in OpenSSL 3.0. glow-up era β¨
π COPYRIGHT π
Copyright 2020-2021 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 thing, no cap π this was EVP_PKEY_CTX_GET0_LIBCTX(3SSL), coming at you from OpenSSL version 4.0.3, dated 2026-09-29. bye bestie, go get those providers π§ββοΈπΈ
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms