dn_sect=CONF_get_string(req_conf,SECTION,DISTINGUISHED_NAME);
dn_sect=NCONF_get_string(req_conf,SECTION,DISTINGUISHED_NAME);
static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, char *subj, int attribs)	{	int ret=0,i;	char no_prompt = 0;	STACK_OF(CONF_VALUE) *dn_sk, *attr_sk = NULL;	char *tmp, *dn_sect,*attr_sect;	tmp=CONF_get_string(req_conf,SECTION,PROMPT);	if (tmp == NULL)		ERR_clear_error();	if((tmp != NULL) && !strcmp(tmp, "no")) no_prompt = 1;	dn_sect=CONF_get_string(req_conf,SECTION,DISTINGUISHED_NAME);	if (dn_sect == NULL)		{		BIO_printf(bio_err,"unable to find '%s' in config\n",			DISTINGUISHED_NAME);		goto err;		}	dn_sk=CONF_get_section(req_conf,dn_sect);	if (dn_sk == NULL)		{		BIO_printf(bio_err,"unable to get '%s' section\n",dn_sect);		goto err;		}	attr_sect=CONF_get_string(req_conf,SECTION,ATTRIBUTES);	if (attr_sect == NULL)		{		ERR_clear_error();				attr_sk=NULL;		}	else		{		attr_sk=CONF_get_section(req_conf,attr_sect);		if (attr_sk == NULL)			{			BIO_printf(bio_err,"unable to get '%s' section\n",attr_sect);			goto err;			}		}	/* setup version number */	if (!X509_REQ_set_version(req,0L)) goto err; /* version 1 */	if (no_prompt) 		i = auto_info(req, dn_sk, attr_sk, attribs);	else 		{		if (subj)			i = build_subject(req, subj);		else			i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs);		}	if(!i) goto err;	X509_REQ_set_pubkey(req,pkey);	ret=1;err:	return(ret);	}