Lines Matching refs:ext
72 static void ext_list_free(X509V3_EXT_METHOD *ext);
80 int X509V3_EXT_add(X509V3_EXT_METHOD *ext) in X509V3_EXT_add() argument
84 ext_list_free(ext); in X509V3_EXT_add()
87 if (!sk_X509V3_EXT_METHOD_push(ext_list, ext)) { in X509V3_EXT_add()
89 ext_list_free(ext); in X509V3_EXT_add()
125 const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext) in X509V3_EXT_get() argument
128 if ((nid = OBJ_obj2nid(ext->object)) == NID_undef) in X509V3_EXT_get()
163 const X509V3_EXT_METHOD *ext; in X509V3_EXT_add_alias() local
166 if (!(ext = X509V3_EXT_get_nid(nid_from))) { in X509V3_EXT_add_alias()
176 *tmpext = *ext; in X509V3_EXT_add_alias()
188 static void ext_list_free(X509V3_EXT_METHOD *ext) in ext_list_free() argument
190 if (ext->ext_flags & X509V3_EXT_DYNAMIC) in ext_list_free()
191 OPENSSL_free(ext); in ext_list_free()
206 void *X509V3_EXT_d2i(X509_EXTENSION *ext) in X509V3_EXT_d2i() argument
211 if (!(method = X509V3_EXT_get(ext))) in X509V3_EXT_d2i()
213 p = ext->value->data; in X509V3_EXT_d2i()
215 return ASN1_item_d2i(NULL, &p, ext->value->length, in X509V3_EXT_d2i()
217 return method->d2i(NULL, &p, ext->value->length); in X509V3_EXT_d2i()
293 X509_EXTENSION *ext = NULL, *extmp; in X509V3_add1_i2d() local
336 ext = X509V3_EXT_i2d(nid, crit, value); in X509V3_add1_i2d()
338 if (!ext) { in X509V3_add1_i2d()
347 if (!sk_X509_EXTENSION_set(*x, extidx, ext)) in X509V3_add1_i2d()
355 if (!sk_X509_EXTENSION_push(ret, ext)) in X509V3_add1_i2d()
364 X509_EXTENSION_free(ext); in X509V3_add1_i2d()