Lines Matching refs:sk
41 int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, in X509v3_get_ext_by_OBJ() argument
47 if (sk == NULL) in X509v3_get_ext_by_OBJ()
52 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_OBJ()
54 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_OBJ()
61 int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *sk, int crit, in X509v3_get_ext_by_critical() argument
67 if (sk == NULL) in X509v3_get_ext_by_critical()
72 n = sk_X509_EXTENSION_num(sk); in X509v3_get_ext_by_critical()
74 ex = sk_X509_EXTENSION_value(sk, lastpos); in X509v3_get_ext_by_critical()
106 STACK_OF(X509_EXTENSION) *sk = NULL; in STACK_OF()
114 if ((sk = sk_X509_EXTENSION_new_null()) == NULL) { in STACK_OF()
119 sk = *x; in STACK_OF()
121 n = sk_X509_EXTENSION_num(sk); in STACK_OF()
131 if (!sk_X509_EXTENSION_insert(sk, new_ex, loc)) { in STACK_OF()
136 *x = sk; in STACK_OF()
137 return sk; in STACK_OF()
141 sk_X509_EXTENSION_free(sk); in STACK_OF()