Lines Matching refs:ex
45 X509_EXTENSION *ex; in X509v3_get_ext_by_OBJ() local
54 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_OBJ()
55 if (OBJ_cmp(ex->object, obj) == 0) in X509v3_get_ext_by_OBJ()
65 X509_EXTENSION *ex; in X509v3_get_ext_by_critical() local
74 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_critical()
75 c = X509_EXTENSION_get_critical(ex); in X509v3_get_ext_by_critical()
102 X509_EXTENSION *ex, int loc) in STACK_OF()
127 if ((new_ex = X509_EXTENSION_dup(ex)) == NULL) { in STACK_OF()
175 X509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid, in X509_EXTENSION_create_by_NID() argument
187 ret = X509_EXTENSION_create_by_OBJ(ex, obj, crit, data); in X509_EXTENSION_create_by_NID()
193 X509_EXTENSION *X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex, in X509_EXTENSION_create_by_OBJ() argument
199 if ((ex == NULL) || (*ex == NULL)) { in X509_EXTENSION_create_by_OBJ()
205 ret = *ex; in X509_EXTENSION_create_by_OBJ()
214 if ((ex != NULL) && (*ex == NULL)) in X509_EXTENSION_create_by_OBJ()
215 *ex = ret; in X509_EXTENSION_create_by_OBJ()
218 if ((ex == NULL) || (ret != *ex)) in X509_EXTENSION_create_by_OBJ()
223 int X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj) in X509_EXTENSION_set_object() argument
225 if ((ex == NULL) || (obj == NULL)) in X509_EXTENSION_set_object()
227 ASN1_OBJECT_free(ex->object); in X509_EXTENSION_set_object()
228 ex->object = OBJ_dup(obj); in X509_EXTENSION_set_object()
229 return ex->object != NULL; in X509_EXTENSION_set_object()
232 int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit) in X509_EXTENSION_set_critical() argument
234 if (ex == NULL) in X509_EXTENSION_set_critical()
236 ex->critical = (crit) ? 0xFF : 0; in X509_EXTENSION_set_critical()
240 int X509_EXTENSION_set_data(X509_EXTENSION *ex, ASN1_OCTET_STRING *data) in X509_EXTENSION_set_data() argument
244 if (ex == NULL) in X509_EXTENSION_set_data()
246 i = ASN1_OCTET_STRING_set(&ex->value, data->data, data->length); in X509_EXTENSION_set_data()
252 ASN1_OBJECT *X509_EXTENSION_get_object(X509_EXTENSION *ex) in X509_EXTENSION_get_object() argument
254 if (ex == NULL) in X509_EXTENSION_get_object()
256 return ex->object; in X509_EXTENSION_get_object()
259 ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *ex) in X509_EXTENSION_get_data() argument
261 if (ex == NULL) in X509_EXTENSION_get_data()
263 return &ex->value; in X509_EXTENSION_get_data()
266 int X509_EXTENSION_get_critical(const X509_EXTENSION *ex) in X509_EXTENSION_get_critical() argument
268 if (ex == NULL) in X509_EXTENSION_get_critical()
270 if (ex->critical > 0) in X509_EXTENSION_get_critical()