Lines Matching refs:sk
81 int X509at_get_attr_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *sk, const ASN1_OBJECT *obj, in X509at_get_attr_by_OBJ() argument
87 if (sk == NULL) return(-1); in X509at_get_attr_by_OBJ()
91 n=sk_X509_ATTRIBUTE_num(sk); in X509at_get_attr_by_OBJ()
94 ex=sk_X509_ATTRIBUTE_value(sk,lastpos); in X509at_get_attr_by_OBJ()
123 STACK_OF(X509_ATTRIBUTE) *sk=NULL; in STACK_OF()
133 if ((sk=sk_X509_ATTRIBUTE_new_null()) == NULL) in STACK_OF()
137 sk= *x; in STACK_OF()
141 if (!sk_X509_ATTRIBUTE_push(sk,new_attr)) in STACK_OF()
144 *x=sk; in STACK_OF()
145 return(sk); in STACK_OF()
150 if (sk != NULL) sk_X509_ATTRIBUTE_free(sk); in STACK_OF()