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;
750 req = load_csr(infile /* if NULL, reads from stdin */,
752 if (req == NULL)
788 if (req == NULL) {
789 req = X509_REQ_new_ex(app_get0_libctx(), app_get0_propq());
790 if (req == NULL) {
794 if (!make_REQ(req, pkey, fsubj, multirdn, !gen_x509, chtype)){
801 EVP_PKEY *pub_key = X509_REQ_get0_pubkey(req);
805 X509_REQ_get_subject_name(req);
807 X509_REQ_get_subject_name(req);
835 } else if (!copy_extensions(new_x509, req, ext_copy)) {
886 X509V3_set_ctx(&ext_ctx, NULL, NULL, req, NULL, 0);
892 req_exts, req)) {
899 req)) {
903 i = do_X509_REQ_sign(req, pkey, digest, sigopts);
912 print_name(out, "Old subject=", X509_REQ_get_subject_name(req));
915 if (!X509_REQ_set_subject_name(req, fsubj)) {
921 print_name(out, "New subject=", X509_REQ_get_subject_name(req));
929 tpubkey = X509_REQ_get0_pubkey(req);
934 i = do_X509_REQ_verify(req, tpubkey, vfyopts);
957 EVP_PKEY *tpubkey = X509_REQ_get0_pubkey(req);
970 ret = X509_REQ_print_ex(out, req, get_nameopt(), reqflag);
984 : X509_REQ_get_subject_name(req));
993 tpubkey = X509_REQ_get0_pubkey(req);
1014 i = i2d_X509_REQ_bio(out, req);
1016 i = PEM_write_bio_X509_REQ_NEW(out, req);
1018 i = PEM_write_bio_X509_REQ(out, req);
1054 X509_REQ_free(req);
1068 static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, X509_NAME *fsubj,
1105 if (!X509_REQ_set_version(req, X509_REQ_VERSION_1))
1109 i = X509_REQ_set_subject_name(req, fsubj);
1111 i = auto_info(req, dn_sk, attr_sk, attribs, chtype);
1113 i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs,
1118 if (!X509_REQ_set_pubkey(req, pkey))
1126 static int prompt_info(X509_REQ *req,
1139 X509_NAME *subj = X509_REQ_get_subject_name(req);
1278 if (!add_attribute_object(req,
1293 static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk,
1303 subj = X509_REQ_get_subject_name(req);
1352 if (!X509_REQ_add1_attr_by_txt(req, v->name, chtype,
1380 static int add_attribute_object(X509_REQ *req, char *text, const char *def,
1393 if (!X509_REQ_add1_attr_by_NID(req, nid, chtype,