libressl-BIO_get_ex_new_index3
Application-specific data
Usage
Crypto Library
(libcrypto,
-lcrypto)
int
int
void *
int
void *
Overview
In the description here, TYPE is used a placeholder for any of the OpenSSL datatypes listed in CRYPTO_get_ex_new_index(3).
These functions handle application-specific data in OpenSSL data structures. Their usage is identical to that of RSA_get_ex_new_index(3), RSA_set_ex_data(3), and RSA_get_ex_data(3).
TYPE_get_ex_new_index() is a macro that calls CRYPTO_get_ex_new_index(3) with the correct index value.
TYPE_set_ex_data() is a function that calls CRYPTO_set_ex_data(3) with an offset into the opaque ex_data part of the TYPE object.
TYPE_get_ex_data() is a function that calls CRYPTO_get_ex_data(3) with an offset into the opaque ex_data part of the TYPE object.
TYPE_set_app_data() and TYPE_get_app_data() are deprecated wrapper macros that call TYPE_set_ex_data() and TYPE_get_ex_data() with idx set to 0.
Return values
TYPE_get_new_ex_index() returns a new index on success or -1 on error.
TYPE_set_ex_data() and TYPE_set_app_data() return 1 on success or 0 on error.
TYPE_get_ex_data() and TYPE_get_app_data() return the application data or NULL if an error occurred.