Lines Matching refs:attr
188 X509_ATTRIBUTE *attr;
200 attr = X509_REQ_get_attr(req, idx);
201 if(attr->single) ext = attr->value.single;
202 else if(sk_ASN1_TYPE_num(attr->value.set))
203 ext = sk_ASN1_TYPE_value(attr->value.set, 0);
222 X509_ATTRIBUTE *attr = NULL;
232 if(!(attr = X509_ATTRIBUTE_new())) goto err;
233 if(!(attr->value.set = sk_ASN1_TYPE_new_null())) goto err;
234 if(!sk_ASN1_TYPE_push(attr->value.set, at)) goto err;
236 attr->single = 0;
237 attr->object = OBJ_nid2obj(nid);
243 if(!sk_X509_ATTRIBUTE_push(req->req_info->attributes, attr)) goto err;
246 X509_ATTRIBUTE_free(attr);
285 int X509_REQ_add1_attr(X509_REQ *req, X509_ATTRIBUTE *attr)
287 if(X509at_add1_attr(&req->req_info->attributes, attr)) return 1;