Lines Matching refs:sk
82 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, const ASN1_OBJECT *obj, in X509v3_get_ext_by_OBJ() argument
88 if (sk == NULL) return(-1); in X509v3_get_ext_by_OBJ()
92 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ()
95 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_OBJ()
102 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument
108 if (sk == NULL) return(-1); in X509v3_get_ext_by_critical()
112 n=sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical()
115 ex=sk_X509_EXTENSION_value(sk,lastpos); in X509v3_get_ext_by_critical()
146 STACK_OF(X509_EXTENSION) *sk=NULL; in STACK_OF()
156 if ((sk=sk_X509_EXTENSION_new_null()) == NULL) in STACK_OF()
160 sk= *x; in STACK_OF()
162 n=sk_X509_EXTENSION_num(sk); in STACK_OF()
168 if (!sk_X509_EXTENSION_insert(sk,new_ex,loc)) in STACK_OF()
171 *x=sk; in STACK_OF()
172 return(sk); in STACK_OF()
177 if (sk != NULL) sk_X509_EXTENSION_free(sk); in STACK_OF()