EVP_CIPHER_CTX_get_app_data.3ossl - Man Page

Routines to inspect and modify application data related to EVP_CIPHER_CTX

Synopsis

 #include <openssl/evp.h>

 void *EVP_CIPHER_CTX_get_app_data(const EVP_CIPHER_CTX *ctx);
 void EVP_CIPHER_CTX_set_app_data(EVP_CIPHER_CTX *ctx, void *data);

Description

The functions EVP_CIPHER_CTX_set_app_data() and EVP_CIPHER_CTX_get_app_data() associate an opaque, application-defined pointer with an EVP_CIPHER_CTX object.

This pointer is not interpreted by the library and is reserved entirely for use by the application. It may be used to store arbitrary context or state that needs to be accessible wherever the corresponding EVP_CIPHER_CTX is available.

Return Values

The EVP_CIPHER_CTX_get_app_data() function returns a opaque pointer to the current application data for the EVP_CIPHER_CTX.

Referenced By

The man page EVP_CIPHER_CTX_set_app_data.3ossl(3) is an alias of EVP_CIPHER_CTX_get_app_data.3ossl(3).

2026-01-27 3.5.5 OpenSSL