EVP_PKEY_CTX_GET0_LIBCTX(3ossl)
okay so bestie, welcome to the EVP_PKEY_CTX_GET0_LIBCTX(3ossl) page from OpenSSL β itβs literally the glow-up guide for grabbing little bits of info out of an EVP_PKEY_CTX. β¨
πΈ NAME πΈ
These are your info-getter girlies: EVP_PKEY_CTX_get0_libctx, EVP_PKEY_CTX_get0_propq, and EVP_PKEY_CTX_get0_provider β functions for getting diverse information from an EVP_PKEY_CTX. π
β¨ 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() obtain the OSSL_LIB_CTX and property query string values respectively that were associated with the EVP_PKEY_CTX when it was constructed. Like, theyβre pulling the receipts from construction time, no cap. π§Ύβ¨
EVP_PKEY_CTX_get0_provider() returns the provider associated with the ongoing EVP_PKEY_CTX operation. But heads up bestie: if the operation is performed by an ENGINE, this function returns NULL. Not me getting a NULL just because an ENGINE is doing the operation π
π RETURN VALUES π
EVP_PKEY_CTX_get0_libctx()andEVP_PKEY_CTX_get0_propq()return theOSSL_LIB_CTXand property query string associated with theEVP_PKEY_CTX, orNULLif they are not set. The returned values should not be freed by the caller. π«ΆEVP_PKEY_CTX_get0_provider()returns a provider if an operation performed by a provider is ongoing, otherwiseNULL. Simple as that, periodt. πββοΈ
π¦ SEE ALSO π¦
β HISTORY β
All functions were added in OpenSSL 3.0. iconic behavior honestly π
π 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>.
mwah π this cutie is from OpenSSL 3.5.0, dated 2026-09-25 β and thatβs the whole vibe check, 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