Lines Matching refs:sk
36 int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, in X509at_get_attr_by_OBJ() argument
42 if (sk == NULL) in X509at_get_attr_by_OBJ()
47 n = sk_X509_ATTRIBUTE_num(sk); in X509at_get_attr_by_OBJ()
49 ex = sk_X509_ATTRIBUTE_value(sk, lastpos); in X509at_get_attr_by_OBJ()
86 STACK_OF(X509_ATTRIBUTE) *sk = NULL; in STACK_OF()
94 if ((sk = sk_X509_ATTRIBUTE_new_null()) == NULL) { in STACK_OF()
99 sk = *x; in STACK_OF()
104 if (!sk_X509_ATTRIBUTE_push(sk, new_attr)) { in STACK_OF()
109 *x = sk; in STACK_OF()
110 return sk; in STACK_OF()
114 sk_X509_ATTRIBUTE_free(sk); in STACK_OF()
257 STACK_OF(X509_ATTRIBUTE) *sk = NULL; in STACK_OF()
260 if (X509at_add1_attr(&sk, sk_X509_ATTRIBUTE_value(x, i)) == NULL) { in STACK_OF()
261 sk_X509_ATTRIBUTE_pop_free(sk, X509_ATTRIBUTE_free); in STACK_OF()
265 return sk; in STACK_OF()