Lines Matching refs:ext
71 static void ext_list_free(X509V3_EXT_METHOD *ext);
78 int X509V3_EXT_add(X509V3_EXT_METHOD *ext) in X509V3_EXT_add() argument
82 ext_list_free(ext); in X509V3_EXT_add()
85 if(!sk_X509V3_EXT_METHOD_push(ext_list, ext)) { in X509V3_EXT_add()
87 ext_list_free(ext); in X509V3_EXT_add()
118 const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *ext) in X509V3_EXT_get() argument
121 if((nid = OBJ_obj2nid(ext->object)) == NID_undef) return NULL; in X509V3_EXT_get()
156 const X509V3_EXT_METHOD *ext; in X509V3_EXT_add_alias() local
159 if(!(ext = X509V3_EXT_get_nid(nid_from))) { in X509V3_EXT_add_alias()
167 *tmpext = *ext; in X509V3_EXT_add_alias()
179 static void ext_list_free(X509V3_EXT_METHOD *ext) in ext_list_free() argument
181 if(ext->ext_flags & X509V3_EXT_DYNAMIC) OPENSSL_free(ext); in ext_list_free()
195 void *X509V3_EXT_d2i(X509_EXTENSION *ext) in X509V3_EXT_d2i() argument
200 if(!(method = X509V3_EXT_get(ext))) return NULL; in X509V3_EXT_d2i()
201 p = ext->value->data; in X509V3_EXT_d2i()
202 if(method->it) return ASN1_item_d2i(NULL, &p, ext->value->length, ASN1_ITEM_ptr(method->it)); in X509V3_EXT_d2i()
203 return method->d2i(NULL, &p, ext->value->length); in X509V3_EXT_d2i()
272 X509_EXTENSION *ext, *extmp; in X509V3_add1_i2d() local
311 ext = X509V3_EXT_i2d(nid, crit, value); in X509V3_add1_i2d()
313 if(!ext) { in X509V3_add1_i2d()
322 if(!sk_X509_EXTENSION_set(*x, extidx, ext)) return -1; in X509V3_add1_i2d()
327 if(!sk_X509_EXTENSION_push(*x, ext)) return -1; in X509V3_add1_i2d()