Lines Matching refs:NULL

78 static CONF *req_conf = NULL;
79 static CONF *addext_conf = NULL;
175 {NULL}
209 if ((p = strchr(kv, '=')) == NULL) { in duplicated()
214 if ((kv = OPENSSL_strdup(kv)) == NULL) in duplicated()
230 if (p != NULL) { in duplicated()
244 ASN1_INTEGER *serial = NULL; in req_main()
245 BIO *out = NULL; in req_main()
246 ENGINE *e = NULL, *gen_eng = NULL; in req_main()
247 EVP_PKEY *pkey = NULL, *CAkey = NULL; in req_main()
248 EVP_PKEY_CTX *genctx = NULL; in req_main()
249 STACK_OF(OPENSSL_STRING) *pkeyopts = NULL, *sigopts = NULL, *vfyopts = NULL; in req_main()
250 LHASH_OF(OPENSSL_STRING) *addexts = NULL; in req_main()
251 X509 *new_x509 = NULL, *CAcert = NULL; in req_main()
252 X509_REQ *req = NULL; in req_main()
253 EVP_CIPHER *cipher = NULL; in req_main()
255 BIO *addext_bio = NULL; in req_main()
256 char *extsect = NULL; in req_main()
257 const char *infile = NULL, *CAfile = NULL, *CAkeyfile = NULL; in req_main()
258 char *outfile = NULL, *keyfile = NULL, *digest = NULL; in req_main()
259 char *keyalgstr = NULL, *p, *prog, *passargin = NULL, *passargout = NULL; in req_main()
260 char *passin = NULL, *passout = NULL; in req_main()
261 char *nofree_passin = NULL, *nofree_passout = NULL; in req_main()
262 char *subj = NULL; in req_main()
263 X509_NAME *fsubj = NULL; in req_main()
264 char *template = default_config_file, *keyout = NULL; in req_main()
265 const char *keyalg = NULL; in req_main()
267 char *not_before = NULL, *not_after = NULL; in req_main()
307 if (gen_eng == NULL) { in req_main()
360 if (pkeyopts == NULL) in req_main()
362 if (pkeyopts == NULL in req_main()
447 if (serial != NULL) { in req_main()
451 serial = s2i_ASN1_INTEGER(NULL, opt_arg()); in req_main()
452 if (serial == NULL) in req_main()
477 if (addexts == NULL) { in req_main()
480 if (addexts == NULL || addext_bio == NULL) in req_main()
501 if (!opt_check_rest_arg(NULL)) in req_main()
510 if (not_before != NULL) in req_main()
512 if (not_after != NULL) in req_main()
517 if (infile == NULL) { in req_main()
530 if ((req_conf = app_load_config_verbose(template, verbose)) == NULL) in req_main()
532 if (addext_bio != NULL) { in req_main()
536 if ((addext_conf = app_load_config_bio(addext_bio, NULL)) == NULL) in req_main()
542 if (req_conf != NULL) { in req_main()
543 p = app_conf_try_string(req_conf, NULL, "oid_file"); in req_main()
544 if (p != NULL) { in req_main()
547 if (oid_bio == NULL) { in req_main()
561 if (digest != NULL) { in req_main()
567 if (p != NULL) in req_main()
571 if (extsect == NULL) in req_main()
574 if (extsect != NULL) { in req_main()
580 if (!X509V3_EXT_add_nconf(req_conf, &ctx, extsect, NULL)) { in req_main()
587 if (addext_conf != NULL) { in req_main()
593 if (!X509V3_EXT_add_nconf(addext_conf, &ctx, "default", NULL)) { in req_main()
599 if (passin == NULL) in req_main()
603 if (passout == NULL) in req_main()
608 if (p != NULL && !ASN1_STRING_set_default_mask_asc(p)) { in req_main()
615 if (p != NULL && strcmp(p, "yes") == 0) in req_main()
619 if (keyfile != NULL) { in req_main()
621 if (pkey == NULL) in req_main()
625 if (keyalg != NULL && pkey != NULL) { in req_main()
630 if (newreq && pkey == NULL) { in req_main()
637 if (genctx == NULL) in req_main()
666 if (pkeyopts != NULL) { in req_main()
682 if (pkey == NULL) in req_main()
686 genctx = NULL; in req_main()
688 if (keyout == NULL && keyfile == NULL) in req_main()
691 if (pkey != NULL && (keyfile == NULL || keyout != NULL)) { in req_main()
694 if (keyout == NULL) in req_main()
700 if (out == NULL) in req_main()
704 if (p == NULL) in req_main()
706 if (p != NULL && strcmp(p, "no") == 0) in req_main()
707 cipher = NULL; in req_main()
709 cipher = NULL; in req_main()
714 NULL, 0, NULL, passout)) { in req_main()
724 out = NULL; in req_main()
732 if (subj != NULL in req_main()
733 && (fsubj = parse_name(subj, chtype, multirdn, "subject")) == NULL) in req_main()
737 if (keyfile != NULL) in req_main()
742 if (req == NULL) in req_main()
744 } else if (infile != NULL) { in req_main()
750 if (CAkeyfile == NULL) in req_main()
752 if (CAkeyfile != NULL) { in req_main()
753 if (CAfile == NULL) { in req_main()
761 : "issuer private key from -CA arg")) == NULL) in req_main()
765 if (CAfile != NULL) { in req_main()
767 "issuer cert from -CA arg")) == NULL) in req_main()
776 if (CAcert == NULL && pkey == NULL) { in req_main()
782 if (req == NULL) { in req_main()
784 if (req == NULL) { in req_main()
796 EVP_PKEY *issuer_key = CAcert != NULL ? CAkey : pkey; in req_main()
798 X509_NAME *issuer = CAcert != NULL ? X509_get_subject_name(CAcert) : in req_main()
800 X509_NAME *n_subj = fsubj != NULL ? fsubj : in req_main()
803 if (CAcert != NULL && keyfile != NULL) in req_main()
808 app_get0_propq())) == NULL) in req_main()
811 if (serial != NULL) { in req_main()
815 if (!rand_serial(NULL, X509_get_serialNumber(new_x509))) in req_main()
823 else if (not_after != NULL) in req_main()
832 if (infile != NULL) in req_main()
840 X509V3_set_ctx(&ext_ctx, CAcert != NULL ? CAcert : new_x509, in req_main()
841 new_x509, NULL, NULL, X509V3_CTX_REPLACE); in req_main()
843 if (CAcert == NULL) { in req_main()
853 if (extsect != NULL in req_main()
859 if (addext_conf != NULL in req_main()
869 NULL, 1, 0) != 1) { in req_main()
887 X509V3_set_ctx(&ext_ctx, NULL, NULL, req, NULL, X509V3_CTX_REPLACE); in req_main()
891 if (extsect != NULL in req_main()
897 if (addext_conf != NULL in req_main()
909 if (subj != NULL && !newreq && !gen_x509) { in req_main()
928 if (tpubkey == NULL) { in req_main()
930 if (tpubkey == NULL) in req_main()
951 keyout != NULL && outfile != NULL && in req_main()
954 if (out == NULL) in req_main()
960 if (tpubkey == NULL) { in req_main()
995 if (tpubkey == NULL) { in req_main()
1001 BIGNUM *n = NULL; in req_main()
1025 if (!noout && gen_x509 && new_x509 != NULL) { in req_main()
1074 STACK_OF(CONF_VALUE) *dn_sk = NULL, *attr_sk = NULL; in make_REQ()
1078 if (tmp != NULL && strcmp(tmp, "no") == 0) in make_REQ()
1082 if (dn_sect != NULL) { in make_REQ()
1084 if (dn_sk == NULL) { in make_REQ()
1091 if (attr_sect != NULL) { in make_REQ()
1093 if (attr_sk == NULL) { in make_REQ()
1103 if (fsubj != NULL) in make_REQ()
1160 p = q = NULL; in prompt_info()
1187 if ((def = app_conf_try_string(req_conf, dn_sect, buf)) == NULL) in prompt_info()
1192 if ((value = app_conf_try_string(req_conf, dn_sect, buf)) == NULL) in prompt_info()
1193 value = NULL; in prompt_info()
1215 if ((attr_sk != NULL) && (sk_CONF_VALUE_num(attr_sk) > 0) in prompt_info()
1227 if ((attr_sk == NULL) || (sk_CONF_VALUE_num(attr_sk) <= i)) in prompt_info()
1238 if (def == NULL) in prompt_info()
1285 p = q = NULL; in auto_info()
1388 if (value != NULL) { in build_data()
1406 if ((def == NULL) || (def[0] == '\0')) in build_data()
1482 EVP_PKEY_CTX *gctx = NULL; in set_keygen_ctx()
1483 EVP_PKEY *param = NULL; in set_keygen_ctx()
1485 BIO *pbio = NULL; in set_keygen_ctx()
1486 const char *keytype = NULL; in set_keygen_ctx()
1489 const char *paramfile = NULL; in set_keygen_ctx()
1492 if (gstr == NULL) { in set_keygen_ctx()
1507 if (p != NULL) in set_keygen_ctx()
1514 if (p == NULL) { in set_keygen_ctx()
1518 return NULL; in set_keygen_ctx()
1525 if (p != NULL) in set_keygen_ctx()
1528 gstr = NULL; in set_keygen_ctx()
1532 if (gstr != NULL) { in set_keygen_ctx()
1540 if (paramfile != NULL) { in set_keygen_ctx()
1542 if (pbio == NULL) { in set_keygen_ctx()
1544 return NULL; in set_keygen_ctx()
1546 param = PEM_read_bio_Parameters(pbio, NULL); in set_keygen_ctx()
1548 if (param == NULL) { in set_keygen_ctx()
1552 x = PEM_read_bio_X509(pbio, NULL, NULL, NULL); in set_keygen_ctx()
1553 if (x != NULL) { in set_keygen_ctx()
1561 if (param == NULL) { in set_keygen_ctx()
1563 return NULL; in set_keygen_ctx()
1565 if (keytype == NULL) { in set_keygen_ctx()
1567 if (keytype == NULL) { in set_keygen_ctx()
1570 return NULL; in set_keygen_ctx()
1580 if (*pkeytype == NULL) { in set_keygen_ctx()
1583 return NULL; in set_keygen_ctx()
1589 if (param != NULL) { in set_keygen_ctx()
1593 return NULL; in set_keygen_ctx()
1596 if (keygen_engine != NULL) in set_keygen_ctx()
1604 if (keygen_engine != NULL) { in set_keygen_ctx()
1616 if (gctx == NULL) { in set_keygen_ctx()
1618 return NULL; in set_keygen_ctx()
1624 return NULL; in set_keygen_ctx()
1639 return NULL; in set_keygen_ctx()