Lines Matching refs:x

21 int X509at_get_attr_count(const STACK_OF(X509_ATTRIBUTE) *x)  in X509at_get_attr_count()  argument
23 return sk_X509_ATTRIBUTE_num(x); in X509at_get_attr_count()
26 int X509at_get_attr_by_NID(const STACK_OF(X509_ATTRIBUTE) *x, int nid, in X509at_get_attr_by_NID() argument
33 return X509at_get_attr_by_OBJ(x, obj, lastpos); in X509at_get_attr_by_NID()
56 X509_ATTRIBUTE *X509at_get_attr(const STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_get_attr() argument
58 if (x == NULL) { in X509at_get_attr()
62 if (sk_X509_ATTRIBUTE_num(x) <= loc || loc < 0) { in X509at_get_attr()
66 return sk_X509_ATTRIBUTE_value(x, loc); in X509at_get_attr()
69 X509_ATTRIBUTE *X509at_delete_attr(STACK_OF(X509_ATTRIBUTE) *x, int loc) in X509at_delete_attr() argument
71 if (x == NULL) { in X509at_delete_attr()
75 if (sk_X509_ATTRIBUTE_num(x) <= loc || loc < 0) { in X509at_delete_attr()
79 return sk_X509_ATTRIBUTE_delete(x, loc); in X509at_delete_attr()
82 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF()
88 if (x == NULL || attr == NULL) { in STACK_OF()
93 if (*x == NULL) { in STACK_OF()
99 sk = *x; in STACK_OF()
108 if (*x == NULL) in STACK_OF()
109 *x = sk; in STACK_OF()
113 if (*x == NULL) in STACK_OF()
118 STACK_OF(X509_ATTRIBUTE) *X509at_add1_attr(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF()
121 if (x == NULL || attr == NULL) { in STACK_OF()
125 if (*x != NULL && X509at_get_attr_by_OBJ(*x, attr->object, -1) != -1) { in STACK_OF()
131 return ossl_x509at_add1_attr(x, attr); in STACK_OF()
134 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr_by_OBJ(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF()
146 ret = ossl_x509at_add1_attr(x, attr); in STACK_OF()
152 **x, const ASN1_OBJECT *obj, in STACK_OF()
157 if (x == NULL || obj == NULL) { in STACK_OF()
161 if (*x != NULL && X509at_get_attr_by_OBJ(*x, obj, -1) != -1) { in STACK_OF()
167 return ossl_x509at_add1_attr_by_OBJ(x, obj, type, bytes, len); in STACK_OF()
170 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr_by_NID(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF()
181 ret = ossl_x509at_add1_attr(x, attr); in STACK_OF()
187 **x, int nid, int type, in STACK_OF()
191 if (x == NULL) { in STACK_OF()
195 if (*x != NULL && X509at_get_attr_by_NID(*x, nid, -1) != -1) { in STACK_OF()
201 return ossl_x509at_add1_attr_by_NID(x, nid, type, bytes, len); in STACK_OF()
204 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_add1_attr_by_txt(STACK_OF(X509_ATTRIBUTE) **x, in STACK_OF()
216 ret = ossl_x509at_add1_attr(x, attr); in STACK_OF()
222 **x, const char *attrname, in STACK_OF()
233 ret = X509at_add1_attr(x, attr); in STACK_OF()
238 void *X509at_get0_data_by_OBJ(const STACK_OF(X509_ATTRIBUTE) *x, in X509at_get0_data_by_OBJ() argument
241 int i = X509at_get_attr_by_OBJ(x, obj, lastpos); in X509at_get0_data_by_OBJ()
246 if (lastpos <= -2 && X509at_get_attr_by_OBJ(x, obj, i) != -1) in X509at_get0_data_by_OBJ()
248 at = X509at_get_attr(x, i); in X509at_get0_data_by_OBJ()
254 STACK_OF(X509_ATTRIBUTE) *ossl_x509at_dup(const STACK_OF(X509_ATTRIBUTE) *x) in STACK_OF()
256 int i, n = sk_X509_ATTRIBUTE_num(x); in STACK_OF()
260 if (X509at_add1_attr(&sk, sk_X509_ATTRIBUTE_value(x, i)) == NULL) { in STACK_OF()