Lines Matching refs:req

51 static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, X509_NAME *fsubj,
53 static int prompt_info(X509_REQ *req,
57 static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *sk,
60 static int add_attribute_object(X509_REQ *req, char *text, const char *def,
252 X509_REQ *req = NULL; in req_main() local
740 req = load_csr_autofmt(infile /* if NULL, reads from stdin */, in req_main()
742 if (req == NULL) in req_main()
782 if (req == NULL) { in req_main()
783 req = X509_REQ_new_ex(app_get0_libctx(), app_get0_propq()); in req_main()
784 if (req == NULL) { in req_main()
788 if (!make_REQ(req, pkey, fsubj, multirdn, !gen_x509, chtype)) { in req_main()
795 EVP_PKEY *pub_key = X509_REQ_get0_pubkey(req); in req_main()
799 X509_REQ_get_subject_name(req); in req_main()
801 X509_REQ_get_subject_name(req); in req_main()
834 } else if (!copy_extensions(new_x509, req, ext_copy)) { in req_main()
887 X509V3_set_ctx(&ext_ctx, NULL, NULL, req, NULL, X509V3_CTX_REPLACE); in req_main()
892 && !X509V3_EXT_REQ_add_nconf(req_conf, &ext_ctx, extsect, req)) { in req_main()
899 req)) { in req_main()
903 i = do_X509_REQ_sign(req, pkey, digest, sigopts); in req_main()
912 print_name(out, "Old subject=", X509_REQ_get_subject_name(req)); in req_main()
915 if (!X509_REQ_set_subject_name(req, fsubj)) { in req_main()
921 print_name(out, "New subject=", X509_REQ_get_subject_name(req)); in req_main()
929 tpubkey = X509_REQ_get0_pubkey(req); in req_main()
934 i = do_X509_REQ_verify(req, tpubkey, vfyopts); in req_main()
958 EVP_PKEY *tpubkey = X509_REQ_get0_pubkey(req); in req_main()
971 ret = X509_REQ_print_ex(out, req, get_nameopt(), reqflag); in req_main()
985 : X509_REQ_get_subject_name(req)); in req_main()
994 tpubkey = X509_REQ_get0_pubkey(req); in req_main()
1015 i = i2d_X509_REQ_bio(out, req); in req_main()
1017 i = PEM_write_bio_X509_REQ_NEW(out, req); in req_main()
1019 i = PEM_write_bio_X509_REQ(out, req); in req_main()
1055 X509_REQ_free(req); in req_main()
1069 static int make_REQ(X509_REQ *req, EVP_PKEY *pkey, X509_NAME *fsubj, in make_REQ() argument
1100 if (!X509_REQ_set_version(req, X509_REQ_VERSION_1)) in make_REQ()
1104 i = X509_REQ_set_subject_name(req, fsubj); in make_REQ()
1106 i = auto_info(req, dn_sk, attr_sk, attribs, chtype); in make_REQ()
1108 i = prompt_info(req, dn_sk, dn_sect, attr_sk, attr_sect, attribs, in make_REQ()
1113 if (!X509_REQ_set_pubkey(req, pkey)) in make_REQ()
1121 static int prompt_info(X509_REQ *req, in prompt_info() argument
1134 X509_NAME *subj = X509_REQ_get_subject_name(req); in prompt_info()
1255 if (!add_attribute_object(req, in prompt_info()
1270 static int auto_info(X509_REQ *req, STACK_OF(CONF_VALUE) *dn_sk, in auto_info() argument
1280 subj = X509_REQ_get_subject_name(req); in auto_info()
1329 if (!X509_REQ_add1_attr_by_txt(req, v->name, chtype, in auto_info()
1357 static int add_attribute_object(X509_REQ *req, char *text, const char *def, in add_attribute_object() argument
1370 if (!X509_REQ_add1_attr_by_NID(req, nid, chtype, in add_attribute_object()