Lines Matching refs:req

50 static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, X509_NAME *fsubj,
52 static int prompt_info(X509_REQ *req,
56 static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *sk,
59 static int add_attribute_object(X509_REQ *req, char *text, const char *def,
77 static const char *section = "req";
113 {"section", OPT_SECTION, 's', "Config section to use (default \"req\")"},
244 X509_REQ *req = NULL;
748 req = load_csr(infile /* if NULL, reads from stdin */,
750 if (req == NULL)
786 if (req == NULL) {
787 req = X509_REQ_new_ex(app_get0_libctx(), app_get0_propq());
788 if (req == NULL) {
792 if (!make_REQ(req, pkey, fsubj, multirdn, !gen_x509, chtype)){
799 EVP_PKEY *pub_key = X509_REQ_get0_pubkey(req);
803 X509_REQ_get_subject_name(req);
805 X509_REQ_get_subject_name(req);
833 } else if (!copy_extensions(new_x509, req, ext_copy)) {
884 X509V3_set_ctx(&ext_ctx, NULL, NULL, req, NULL, 0);
890 req_exts, req)) {
897 req)) {
901 i = do_X509_REQ_sign(req, pkey, digest, sigopts);
910 print_name(out, "Old subject=", X509_REQ_get_subject_name(req));
913 if (!X509_REQ_set_subject_name(req, fsubj)) {
919 print_name(out, "New subject=", X509_REQ_get_subject_name(req));
927 tpubkey = X509_REQ_get0_pubkey(req);
932 i = do_X509_REQ_verify(req, tpubkey, vfyopts);
955 EVP_PKEY *tpubkey = X509_REQ_get0_pubkey(req);
968 ret = X509_REQ_print_ex(out, req, get_nameopt(), reqflag);
982 : X509_REQ_get_subject_name(req));
991 tpubkey = X509_REQ_get0_pubkey(req);
1012 i = i2d_X509_REQ_bio(out, req);
1014 i = PEM_write_bio_X509_REQ_NEW(out, req);
1016 i = PEM_write_bio_X509_REQ(out, req);
1052 X509_REQ_free(req);
1066 static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, X509_NAME *fsubj,
1103 if (!X509_REQ_set_version(req, X509_REQ_VERSION_1))
1107 i = X509_REQ_set_subject_name(req, fsubj);
1109 i = auto_info(req, dn_sk, attr_sk, attribs, chtype);
1111 i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs,
1116 if (!X509_REQ_set_pubkey(req, pkey))
1124 static int prompt_info(X509_REQ *req,
1137 X509_NAME *subj = X509_REQ_get_subject_name(req);
1276 if (!add_attribute_object(req,
1291 static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk,
1301 subj = X509_REQ_get_subject_name(req);
1350 if (!X509_REQ_add1_attr_by_txt(req, v->name, chtype,
1378 static int add_attribute_object(X509_REQ *req, char *text, const char *def,
1391 if (!X509_REQ_add1_attr_by_NID(req, nid, chtype,