Lines Matching refs:obj
136 MYOBJ *obj = OPENSSL_malloc(sizeof(*obj)); in MYOBJ_new() local
138 if (obj != NULL) { in MYOBJ_new()
139 obj->id = ++count; in MYOBJ_new()
140 obj->st = CRYPTO_new_ex_data(CRYPTO_EX_INDEX_APP, obj, &obj->ex_data); in MYOBJ_new()
142 return obj; in MYOBJ_new()
145 static void MYOBJ_sethello(MYOBJ *obj, char *cp) in MYOBJ_sethello() argument
147 obj->st = CRYPTO_set_ex_data(&obj->ex_data, saved_idx, cp); in MYOBJ_sethello()
148 if (!TEST_int_eq(obj->st, 1)) in MYOBJ_sethello()
152 static char *MYOBJ_gethello(MYOBJ *obj) in MYOBJ_gethello() argument
154 return CRYPTO_get_ex_data(&obj->ex_data, saved_idx); in MYOBJ_gethello()
157 static void MYOBJ_sethello2(MYOBJ *obj, char *cp) in MYOBJ_sethello2() argument
159 MYOBJ_EX_DATA* ex_data = CRYPTO_get_ex_data(&obj->ex_data, saved_idx2); in MYOBJ_sethello2()
164 obj->st = gbl_result = 0; in MYOBJ_sethello2()
167 static char *MYOBJ_gethello2(MYOBJ *obj) in MYOBJ_gethello2() argument
169 MYOBJ_EX_DATA* ex_data = CRYPTO_get_ex_data(&obj->ex_data, saved_idx2); in MYOBJ_gethello2()
174 obj->st = gbl_result = 0; in MYOBJ_gethello2()
178 static void MYOBJ_allochello3(MYOBJ *obj, char *cp) in MYOBJ_allochello3() argument
182 if (TEST_ptr_null(ex_data = CRYPTO_get_ex_data(&obj->ex_data, saved_idx3)) in MYOBJ_allochello3()
183 && TEST_true(CRYPTO_alloc_ex_data(CRYPTO_EX_INDEX_APP, obj, in MYOBJ_allochello3()
184 &obj->ex_data, saved_idx3)) in MYOBJ_allochello3()
185 && TEST_ptr(ex_data = CRYPTO_get_ex_data(&obj->ex_data, saved_idx3))) in MYOBJ_allochello3()
188 obj->st = gbl_result = 0; in MYOBJ_allochello3()
191 static char *MYOBJ_gethello3(MYOBJ *obj) in MYOBJ_gethello3() argument
193 MYOBJ_EX_DATA* ex_data = CRYPTO_get_ex_data(&obj->ex_data, saved_idx3); in MYOBJ_gethello3()
198 obj->st = gbl_result = 0; in MYOBJ_gethello3()
202 static void MYOBJ_free(MYOBJ *obj) in MYOBJ_free() argument
204 if (obj != NULL) { in MYOBJ_free()
205 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_APP, obj, &obj->ex_data); in MYOBJ_free()
206 OPENSSL_free(obj); in MYOBJ_free()
212 MYOBJ *obj = MYOBJ_new(); in MYOBJ_dup() local
214 if (obj != NULL) in MYOBJ_dup()
215 obj->st |= CRYPTO_dup_ex_data(CRYPTO_EX_INDEX_APP, &obj->ex_data, in MYOBJ_dup()
217 return obj; in MYOBJ_dup()