Lines Matching refs:propdata

78     PROPERTY_STRING_DATA *propdata = vpropdata;  in ossl_property_string_data_free()  local
80 if (propdata == NULL) in ossl_property_string_data_free()
83 CRYPTO_THREAD_lock_free(propdata->lock); in ossl_property_string_data_free()
84 property_table_free(&propdata->prop_names); in ossl_property_string_data_free()
85 property_table_free(&propdata->prop_values); in ossl_property_string_data_free()
87 sk_OPENSSL_CSTRING_free(propdata->prop_namelist); in ossl_property_string_data_free()
88 sk_OPENSSL_CSTRING_free(propdata->prop_valuelist); in ossl_property_string_data_free()
89 propdata->prop_namelist = propdata->prop_valuelist = NULL; in ossl_property_string_data_free()
91 propdata->prop_name_idx = propdata->prop_value_idx = 0; in ossl_property_string_data_free()
93 OPENSSL_free(propdata); in ossl_property_string_data_free()
97 PROPERTY_STRING_DATA *propdata = OPENSSL_zalloc(sizeof(*propdata)); in ossl_property_string_data_new() local
99 if (propdata == NULL) in ossl_property_string_data_new()
102 propdata->lock = CRYPTO_THREAD_lock_new(); in ossl_property_string_data_new()
103 propdata->prop_names = lh_PROPERTY_STRING_new(&property_hash, in ossl_property_string_data_new()
105 propdata->prop_values = lh_PROPERTY_STRING_new(&property_hash, in ossl_property_string_data_new()
108 propdata->prop_namelist = sk_OPENSSL_CSTRING_new_null(); in ossl_property_string_data_new()
109 propdata->prop_valuelist = sk_OPENSSL_CSTRING_new_null(); in ossl_property_string_data_new()
111 if (propdata->lock == NULL in ossl_property_string_data_new()
113 || propdata->prop_namelist == NULL in ossl_property_string_data_new()
114 || propdata->prop_valuelist == NULL in ossl_property_string_data_new()
116 || propdata->prop_names == NULL in ossl_property_string_data_new()
117 || propdata->prop_values == NULL) { in ossl_property_string_data_new()
118 ossl_property_string_data_free(propdata); in ossl_property_string_data_new()
121 return propdata; in ossl_property_string_data_new()
148 PROPERTY_STRING_DATA *propdata in ossl_property_string() local
151 if (propdata == NULL) in ossl_property_string()
154 t = name ? propdata->prop_names : propdata->prop_values; in ossl_property_string()
156 if (!CRYPTO_THREAD_read_lock(propdata->lock)) { in ossl_property_string()
162 CRYPTO_THREAD_unlock(propdata->lock); in ossl_property_string()
163 if (!CRYPTO_THREAD_write_lock(propdata->lock)) { in ossl_property_string()
167 pidx = name ? &propdata->prop_name_idx : &propdata->prop_value_idx; in ossl_property_string()
173 slist = name ? propdata->prop_namelist : propdata->prop_valuelist; in ossl_property_string()
176 CRYPTO_THREAD_unlock(propdata->lock); in ossl_property_string()
191 CRYPTO_THREAD_unlock(propdata->lock); in ossl_property_string()
197 CRYPTO_THREAD_unlock(propdata->lock); in ossl_property_string()
220 PROPERTY_STRING_DATA *propdata in ossl_property_str() local
223 if (propdata == NULL) in ossl_property_str()
226 if (!CRYPTO_THREAD_read_lock(propdata->lock)) { in ossl_property_str()
237 lh_PROPERTY_STRING_doall_arg(name ? propdata->prop_names in ossl_property_str()
238 : propdata->prop_values, in ossl_property_str()
243 r = sk_OPENSSL_CSTRING_value(name ? propdata->prop_namelist in ossl_property_str()
244 : propdata->prop_valuelist, idx - 1); in ossl_property_str()
246 CRYPTO_THREAD_unlock(propdata->lock); in ossl_property_str()