112 if ((req == NULL) || (req->
req_info == NULL))
135 #ifndef OPENSSL_NO_EC
142 #ifndef OPENSSL_NO_DH
164 static int *ext_nids = ext_nid_list;
172 else if (req_nid == nid)
return 1;
191 const unsigned char *
p;
193 if ((req == NULL) || (req->
req_info == NULL) || !ext_nids)
195 for (pnid = ext_nids; *pnid !=
NID_undef; pnid++)
223 if(!(at = ASN1_TYPE_new()) ||
232 if(!(attr = X509_ATTRIBUTE_new()))
goto err;
246 X509_ATTRIBUTE_free(attr);
287 if(X509at_add1_attr(&req->
req_info->attributes, attr))
return 1;
293 const unsigned char *
bytes,
int len)
295 if(X509at_add1_attr_by_OBJ(&req->
req_info->attributes, obj,
296 type, bytes, len))
return 1;
302 const unsigned char *
bytes,
int len)
304 if(X509at_add1_attr_by_NID(&req->
req_info->attributes, nid,
305 type, bytes, len))
return 1;
311 const unsigned char *
bytes,
int len)
313 if(X509at_add1_attr_by_txt(&req->
req_info->attributes, attrname,
314 type, bytes, len))
return 1;