Lines Matching refs:ad
170 int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int index, void *val) { in CRYPTO_set_ex_data() argument
173 if (ad->sk == NULL) { in CRYPTO_set_ex_data()
174 ad->sk = sk_void_new_null(); in CRYPTO_set_ex_data()
175 if (ad->sk == NULL) { in CRYPTO_set_ex_data()
181 n = sk_void_num(ad->sk); in CRYPTO_set_ex_data()
185 if (!sk_void_push(ad->sk, NULL)) { in CRYPTO_set_ex_data()
191 sk_void_set(ad->sk, index, val); in CRYPTO_set_ex_data()
195 void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx) { in CRYPTO_get_ex_data() argument
196 if (ad->sk == NULL || idx < 0 || (size_t)idx >= sk_void_num(ad->sk)) { in CRYPTO_get_ex_data()
199 return sk_void_value(ad->sk, idx); in CRYPTO_get_ex_data()
230 void CRYPTO_new_ex_data(CRYPTO_EX_DATA *ad) { in CRYPTO_new_ex_data() argument
231 ad->sk = NULL; in CRYPTO_new_ex_data()
264 CRYPTO_EX_DATA *ad) { in CRYPTO_free_ex_data() argument
265 if (ad->sk == NULL) { in CRYPTO_free_ex_data()
280 void *ptr = CRYPTO_get_ex_data(ad, i + ex_data_class->num_reserved); in CRYPTO_free_ex_data()
281 func_pointer->free_func(obj, ptr, ad, i + ex_data_class->num_reserved, in CRYPTO_free_ex_data()
288 sk_void_free(ad->sk); in CRYPTO_free_ex_data()
289 ad->sk = NULL; in CRYPTO_free_ex_data()