Allocate ex_data at index idx by invoking the registered new callback if unset.
Declared in <openssl/crypto.h>
int
CRYPTO_alloc_ex_data(
int class_index,
void* obj,
CRYPTO_EX_DATA* ad,
int idx);
1 on success (including when a value is already present), or 0 on failure.
| Name | Description |
|---|---|
| class_index | CRYPTO_EX_INDEX_* identifying the object class. |
| obj | Object that owns ad (passed to the new callback). |
| ad | Ex-data table to allocate into. |
| idx | Index from CRYPTO_get_ex_new_index() (or a class helper). |