[#CRYPTO_set_ex_data] = CRYPTO_set_ex_data :mrdocs: Store `val` at ex_data index `idx,` replacing any previous pointer. == Synopsis Declared in `<openssl/crypto.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CRYPTO_set_ex_data( xref:CRYPTO_EX_DATA.adoc[CRYPTO_EX_DATA]* ad, int idx, void* val); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ad* | Ex‐data bag to update. | *idx* | Index from CRYPTO_get_ex_new_index() (or a class helper). | *val* | Pointer to store (may be NULL to clear the slot). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#