Lines Matching refs:idx

96 static void dummy_new(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx,  in dummy_new()  argument
101 static void dummy_free(void *parent, void *ptr, CRYPTO_EX_DATA *ad, int idx, in dummy_free() argument
107 void **from_d, int idx, in dummy_dup() argument
113 int ossl_crypto_free_ex_index_ex(OSSL_LIB_CTX *ctx, int class_index, int idx) in ossl_crypto_free_ex_index_ex() argument
127 if (idx < 0 || idx >= sk_EX_CALLBACK_num(ip->meth)) in ossl_crypto_free_ex_index_ex()
129 a = sk_EX_CALLBACK_value(ip->meth, idx); in ossl_crypto_free_ex_index_ex()
141 int CRYPTO_free_ex_index(int class_index, int idx) in CRYPTO_free_ex_index() argument
143 return ossl_crypto_free_ex_index_ex(NULL, class_index, idx); in CRYPTO_free_ex_index()
424 int idx) in CRYPTO_alloc_ex_data() argument
428 curval = CRYPTO_get_ex_data(ad, idx); in CRYPTO_alloc_ex_data()
433 return ossl_crypto_alloc_ex_data_intern(class_index, obj, ad, idx); in CRYPTO_alloc_ex_data()
437 CRYPTO_EX_DATA *ad, int idx) in ossl_crypto_alloc_ex_data_intern() argument
450 f = sk_EX_CALLBACK_value(ip->meth, idx); in ossl_crypto_alloc_ex_data_intern()
460 f->new_func(obj, NULL, ad, idx, f->argl, f->argp); in ossl_crypto_alloc_ex_data_intern()
469 int CRYPTO_set_ex_data(CRYPTO_EX_DATA *ad, int idx, void *val) in CRYPTO_set_ex_data() argument
480 for (i = sk_void_num(ad->sk); i <= idx; ++i) { in CRYPTO_set_ex_data()
486 if (sk_void_set(ad->sk, idx, val) != val) { in CRYPTO_set_ex_data()
498 void *CRYPTO_get_ex_data(const CRYPTO_EX_DATA *ad, int idx) in CRYPTO_get_ex_data() argument
500 if (ad->sk == NULL || idx >= sk_void_num(ad->sk)) in CRYPTO_get_ex_data()
502 return sk_void_value(ad->sk, idx); in CRYPTO_get_ex_data()