提交 256f9573 编写于 作者: D Dr. Stephen Henson

make -subj always override config file

上级 b6b094fb
...@@ -1159,15 +1159,12 @@ static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, char *subj, int multirdn, ...@@ -1159,15 +1159,12 @@ static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, char *subj, int multirdn,
/* setup version number */ /* setup version number */
if (!X509_REQ_set_version(req,0L)) goto err; /* version 1 */ if (!X509_REQ_set_version(req,0L)) goto err; /* version 1 */
if (no_prompt)
i = auto_info(req, dn_sk, attr_sk, attribs, chtype);
else
{
if (subj) if (subj)
i = build_subject(req, subj, chtype, multirdn); i = build_subject(req, subj, chtype, multirdn);
else if (no_prompt)
i = auto_info(req, dn_sk, attr_sk, attribs, chtype);
else else
i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs, chtype); i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs, chtype);
}
if(!i) goto err; if(!i) goto err;
if (!X509_REQ_set_pubkey(req,pkey)) goto err; if (!X509_REQ_set_pubkey(req,pkey)) goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册