Lines Matching refs:NULL

89     char c = '\0', *p = NULL;  in chopup_args()
110 if (tmp == NULL) in chopup_args()
131 arg->argv[arg->argc] = NULL; in chopup_args()
147 if (CAfile == NULL && CApath == NULL && CAstore == NULL) { in ctx_set_verify_locations()
158 if (CAfile != NULL && !SSL_CTX_load_verify_file(ctx, CAfile)) in ctx_set_verify_locations()
160 if (CApath != NULL && !SSL_CTX_load_verify_dir(ctx, CApath)) in ctx_set_verify_locations()
162 if (CAstore != NULL && !SSL_CTX_load_verify_store(ctx, CAstore)) in ctx_set_verify_locations()
171 if (path == NULL) in ctx_set_ctlog_list_file()
213 char *result = NULL; in get_passwd()
215 if (desc == NULL) in get_passwd()
217 if (!app_passwd(pass, NULL, &result, NULL)) in get_passwd()
219 if (pass != NULL && result == NULL) { in get_passwd()
223 if (result == NULL) in get_passwd()
232 int same = arg1 != NULL && arg2 != NULL && strcmp(arg1, arg2) == 0; in app_passwd()
234 if (arg1 != NULL) { in app_passwd()
236 if (*pass1 == NULL) in app_passwd()
238 } else if (pass1 != NULL) { in app_passwd()
239 *pass1 = NULL; in app_passwd()
241 if (arg2 != NULL) { in app_passwd()
243 if (*pass2 == NULL) in app_passwd()
245 } else if (pass2 != NULL) { in app_passwd()
246 *pass2 = NULL; in app_passwd()
253 static BIO *pwdbio = NULL; in app_get_pass()
262 if (tmp == NULL) { in app_get_pass()
264 return NULL; in app_get_pass()
268 if (!keepbio || pwdbio == NULL) { in app_get_pass()
271 if (pwdbio == NULL) { in app_get_pass()
273 return NULL; in app_get_pass()
290 if ((i < 0) || pwdbio == NULL) { in app_get_pass()
292 return NULL; in app_get_pass()
298 if (btmp == NULL) { in app_get_pass()
300 pwdbio = NULL; in app_get_pass()
302 return NULL; in app_get_pass()
309 if (pwdbio == NULL) { in app_get_pass()
311 return NULL; in app_get_pass()
316 if (tmp == NULL || tmp - arg > PASS_SOURCE_SIZE_MAX) in app_get_pass()
324 return NULL; in app_get_pass()
330 pwdbio = NULL; in app_get_pass()
334 return NULL; in app_get_pass()
337 if (tmp != NULL) in app_get_pass()
348 if (res == NULL) in app_conf_try_string()
375 conf = NCONF_new_ex(app_get0_libctx(), NULL); in app_load_config_bio()
386 if (filename != NULL) in app_load_config_bio()
392 return NULL; in app_load_config_bio()
411 if (filename == NULL || *filename != '\0') { in app_load_config_internal()
412 if ((in = bio_open_default_(filename, 'r', FORMAT_TEXT, quiet)) == NULL) in app_load_config_internal()
413 return NULL; in app_load_config_internal()
418 conf = NCONF_new_ex(app_get0_libctx(), NULL); in app_load_config_internal()
425 CONF *to_free = NULL; in app_load_modules()
427 if (config == NULL) in app_load_modules()
429 if (config == NULL) in app_load_modules()
432 if (CONF_modules_load(config, NULL, 0) <= 0) { in app_load_modules()
449 if ((p = app_conf_try_string(conf, NULL, "oid_section")) == NULL) in add_oid_section()
451 if ((sktmp = NCONF_get_section(conf, p)) == NULL) { in add_oid_section()
468 CONF *conf = NULL; in app_load_config_modules()
470 if (configfile != NULL) { in app_load_config_modules()
471 if ((conf = app_load_config_verbose(configfile, 1)) == NULL) in app_load_config_modules()
472 return NULL; in app_load_config_modules()
475 conf = NULL; in app_load_config_modules()
481 #define IS_HTTP(uri) ((uri) != NULL && HAS_PREFIX(uri, OSSL_HTTP_PREFIX))
482 #define IS_HTTPS(uri) ((uri) != NULL && HAS_PREFIX(uri, OSSL_HTTPS_PREFIX))
487 X509 *cert = NULL; in load_cert_pass()
489 if (desc == NULL) in load_cert_pass()
494 cert = X509_load_http(uri, NULL, NULL, 0 /* timeout */); in load_cert_pass()
495 if (cert == NULL) { in load_cert_pass()
501 NULL, NULL, NULL, &cert, NULL, NULL, NULL); in load_cert_pass()
509 X509_CRL *crl = NULL; in load_crl()
511 if (desc == NULL) in load_crl()
516 crl = X509_CRL_load_http(uri, NULL, NULL, 0 /* timeout */); in load_crl()
517 if (crl == NULL) { in load_crl()
522 (void)load_key_certs_crls(uri, format, maybe_stdin, NULL, desc, 0, in load_crl()
523 NULL, NULL, NULL, NULL, NULL, &crl, NULL); in load_crl()
531 X509_REQ *req = NULL; in load_csr()
537 if (in == NULL) in load_csr()
541 req = d2i_X509_REQ_bio(in, NULL); in load_csr()
543 req = PEM_read_bio_X509_REQ(in, NULL, NULL, NULL); in load_csr()
548 if (req == NULL) { in load_csr()
550 if (desc != NULL) in load_csr()
568 bio_err = NULL; /* do not show errors on more than one try */ in load_csr_autofmt()
569 csr = load_csr(infile, FORMAT_PEM, NULL /* desc */); in load_csr_autofmt()
571 if (csr == NULL) { in load_csr_autofmt()
573 csr = load_csr(infile, FORMAT_ASN1, NULL /* desc */); in load_csr_autofmt()
575 if (csr == NULL) { in load_csr_autofmt()
580 if (csr != NULL) { in load_csr_autofmt()
584 if (pkey == NULL || ret < 0) in load_csr_autofmt()
595 if (str != NULL) in cleanse()
601 if (str != NULL) in clear_free()
608 EVP_PKEY *pkey = NULL; in load_key()
609 char *allocated_uri = NULL; in load_key()
611 if (desc == NULL) in load_key()
617 &pkey, NULL, NULL, NULL, NULL, NULL, NULL); in load_key()
627 EVP_PKEY *pkey = NULL; in load_pubkey()
628 char *allocated_uri = NULL; in load_pubkey()
630 if (desc == NULL) in load_pubkey()
636 NULL, &pkey, NULL, NULL, NULL, NULL, NULL); in load_pubkey()
637 if (pkey == NULL) in load_pubkey()
639 &pkey, NULL, NULL, NULL, NULL, NULL, NULL); in load_pubkey()
648 EVP_PKEY *params = NULL; in load_keyparams_suppress()
650 if (desc == NULL) in load_keyparams_suppress()
652 (void)load_key_certs_crls(uri, format, maybe_stdin, NULL, desc, in load_keyparams_suppress()
654 NULL, NULL, &params, NULL, NULL, NULL, NULL); in load_keyparams_suppress()
655 if (params != NULL && keytype != NULL && !EVP_PKEY_is_a(params, keytype)) { in load_keyparams_suppress()
661 params = NULL; in load_keyparams_suppress()
687 if (vp == NULL) in app_malloc()
705 return *opt == '\0' ? NULL : opt; /* NULL indicates end of input */ in next_item()
710 char *subj = X509_NAME_oneline(X509_get_subject_name(cert), NULL, 0); in warn_cert_msg()
747 if (desc == NULL) in load_cert_certs()
748 desc = pcerts == NULL ? "certificate" : "certificates"; in load_cert_certs()
756 NULL, NULL, NULL, pcert, pcerts, NULL, NULL); in load_cert_certs()
760 if (pcert != NULL) in load_cert_certs()
762 if (pcerts != NULL) in load_cert_certs()
765 if (pcerts != NULL) { in load_cert_certs()
767 *pcerts = NULL; in load_cert_certs()
776 STACK_OF(X509) *certs = NULL; in STACK_OF()
779 if (files == NULL) in STACK_OF()
781 if (result == NULL) in STACK_OF()
784 while (files != NULL) { in STACK_OF()
787 if (!load_cert_certs(files, NULL, &certs, 0, pass, desc, vpm)) in STACK_OF()
793 certs = NULL; in STACK_OF()
803 return NULL; in STACK_OF()
811 if (store == NULL) in sk_X509_to_store()
813 if (store == NULL) in sk_X509_to_store()
814 return NULL; in sk_X509_to_store()
818 return NULL; in sk_X509_to_store()
831 X509_STORE *store = NULL; in load_certstore()
832 STACK_OF(X509) *certs = NULL; in load_certstore()
834 while (input != NULL) { in load_certstore()
838 if (!load_cert_certs(input, NULL, &certs, 1, pass, desc, vpm)) { in load_certstore()
840 return NULL; in load_certstore()
842 ok = (store = sk_X509_to_store(store, certs)) != NULL; in load_certstore()
844 certs = NULL; in load_certstore()
846 return NULL; in load_certstore()
859 int ret, was_NULL = *certs == NULL; in load_certs()
861 if (desc == NULL) in load_certs()
864 NULL, NULL, NULL, NULL, certs, NULL, NULL); in load_certs()
868 *certs = NULL; in load_certs()
880 int ret, was_NULL = *crls == NULL; in load_crls()
882 if (desc == NULL) in load_crls()
885 NULL, NULL, NULL, NULL, NULL, NULL, crls); in load_crls()
889 *crls = NULL; in load_crls()
902 return NULL; in format2string()
909 if ((pvar) != NULL) { \
910 *(pvar) = NULL; \
914 (ppkey != NULL ? "private key" : ppubkey != NULL ? "public key" : \
915 pparams != NULL ? "key parameters" : \
916 pcert != NULL ? "certificate" : pcerts != NULL ? "certificates" : \
917 pcrl != NULL ? "CRL" : pcrls != NULL ? "CRLs" : NULL)
939 OSSL_STORE_CTX *ctx = NULL; in load_key_certs_crls()
946 const OSSL_PARAM *params = NULL; in load_key_certs_crls()
948 if (failed == NULL) { in load_key_certs_crls()
951 uri != NULL ? uri : "<stdin>"); in load_key_certs_crls()
960 if (pcerts != NULL) { in load_key_certs_crls()
961 if (*pcerts == NULL && (*pcerts = sk_X509_new_null()) == NULL) { in load_key_certs_crls()
969 if (pcrls != NULL) { in load_key_certs_crls()
970 if (*pcrls == NULL && (*pcrls = sk_X509_CRL_new_null()) == NULL) { in load_key_certs_crls()
981 if ((input_type = format2string(format)) != NULL) { in load_key_certs_crls()
988 if (uri == NULL) { in load_key_certs_crls()
999 if (bio != NULL) { in load_key_certs_crls()
1002 NULL, NULL); in load_key_certs_crls()
1007 params, NULL, NULL); in load_key_certs_crls()
1009 if (ctx == NULL) { in load_key_certs_crls()
1020 failed = NULL; in load_key_certs_crls()
1021 while ((ppkey != NULL || ppubkey != NULL || pparams != NULL in load_key_certs_crls()
1022 || pcert != NULL || pcerts != NULL || pcrl != NULL || pcrls != NULL) in load_key_certs_crls()
1034 if (info == NULL) { in load_key_certs_crls()
1041 if (ppkey != NULL) { in load_key_certs_crls()
1042 ok = (*ppkey = OSSL_STORE_INFO_get1_PKEY(info)) != NULL; in load_key_certs_crls()
1044 ppkey = NULL; in load_key_certs_crls()
1054 if (ppubkey != NULL) { in load_key_certs_crls()
1055 ok = (*ppubkey = OSSL_STORE_INFO_get1_PUBKEY(info)) != NULL; in load_key_certs_crls()
1057 ppubkey = NULL; in load_key_certs_crls()
1061 if (pparams != NULL) { in load_key_certs_crls()
1062 ok = (*pparams = OSSL_STORE_INFO_get1_PARAMS(info)) != NULL; in load_key_certs_crls()
1064 pparams = NULL; in load_key_certs_crls()
1068 if (pcert != NULL) { in load_key_certs_crls()
1069 ok = (*pcert = OSSL_STORE_INFO_get1_CERT(info)) != NULL; in load_key_certs_crls()
1071 pcert = NULL; in load_key_certs_crls()
1072 } else if (pcerts != NULL) { in load_key_certs_crls()
1080 if (pcrl != NULL) { in load_key_certs_crls()
1081 ok = (*pcrl = OSSL_STORE_INFO_get1_CRL(info)) != NULL; in load_key_certs_crls()
1083 pcrl = NULL; in load_key_certs_crls()
1084 } else if (pcrls != NULL) { in load_key_certs_crls()
1105 pcerts = NULL; in load_key_certs_crls()
1107 pcrls = NULL; in load_key_certs_crls()
1108 if (failed == NULL) { in load_key_certs_crls()
1110 if (failed != NULL && !quiet) in load_key_certs_crls()
1113 if (failed != NULL && !quiet) { in load_key_certs_crls()
1116 if (desc != NULL && strstr(desc, failed) != NULL) { in load_key_certs_crls()
1120 if (desc != NULL) in load_key_certs_crls()
1123 if (uri != NULL) in load_key_certs_crls()
1134 if (quiet || failed == NULL) in load_key_certs_crls()
1139 return failed == NULL; in load_key_certs_crls()
1172 {NULL, 0, 0} in set_cert_ex()
1208 {NULL, 0, 0} in set_name_ex()
1247 if (x == NULL || req == NULL) in copy_extensions()
1335 if (out == NULL) in print_name()
1337 if (title != NULL) in print_name()
1402 if (store == NULL) in setup_verify()
1405 if (CAfile != NULL || !noCAfile) { in setup_verify()
1407 if (lookup == NULL) in setup_verify()
1409 if (CAfile != NULL) { in setup_verify()
1420 X509_LOOKUP_load_file_ex(lookup, NULL, X509_FILETYPE_DEFAULT, in setup_verify()
1425 if (CApath != NULL || !noCApath) { in setup_verify()
1427 if (lookup == NULL) in setup_verify()
1429 if (CApath != NULL) { in setup_verify()
1435 X509_LOOKUP_add_dir(lookup, NULL, X509_FILETYPE_DEFAULT); in setup_verify()
1439 if (CAstore != NULL || !noCAstore) { in setup_verify()
1441 if (lookup == NULL) in setup_verify()
1444 if (CAstore != NULL) in setup_verify()
1455 return NULL; in setup_verify()
1502 BIO *in = NULL; in IMPLEMENT_LHASH_HASH_FN()
1503 BIGNUM *ret = NULL; in IMPLEMENT_LHASH_HASH_FN()
1505 ASN1_INTEGER *ai = NULL; in IMPLEMENT_LHASH_HASH_FN()
1508 if (ai == NULL) in IMPLEMENT_LHASH_HASH_FN()
1512 if (exists != NULL) in IMPLEMENT_LHASH_HASH_FN()
1513 *exists = in != NULL; in IMPLEMENT_LHASH_HASH_FN()
1514 if (in == NULL) { in IMPLEMENT_LHASH_HASH_FN()
1521 if (ret == NULL) { in IMPLEMENT_LHASH_HASH_FN()
1527 ret = NULL; in IMPLEMENT_LHASH_HASH_FN()
1535 ret = ASN1_INTEGER_to_BN(ai, NULL); in IMPLEMENT_LHASH_HASH_FN()
1536 if (ret == NULL) { in IMPLEMENT_LHASH_HASH_FN()
1542 if (ret != NULL && retai != NULL) { in IMPLEMENT_LHASH_HASH_FN()
1544 ai = NULL; in IMPLEMENT_LHASH_HASH_FN()
1547 if (ret == NULL) in IMPLEMENT_LHASH_HASH_FN()
1558 BIO *out = NULL; in save_serial()
1560 ASN1_INTEGER *ai = NULL; in save_serial()
1563 if (suffix == NULL) in save_serial()
1572 if (suffix == NULL) { in save_serial()
1582 if (out == NULL) { in save_serial()
1586 if ((ai = BN_to_ASN1_INTEGER(serial, NULL)) == NULL) { in save_serial()
1595 ai = NULL; in save_serial()
1654 btmp = b == NULL ? BN_new() : b; in rand_serial()
1655 if (btmp == NULL) in rand_serial()
1675 CA_DB *retdb = NULL; in load_index()
1676 TXT_DB *tmpdb = NULL; in load_index()
1678 CONF *dbattr_conf = NULL; in load_index()
1686 if (in == NULL) in load_index()
1698 if ((tmpdb = TXT_DB_read(in, DB_NUMBER)) == NULL) in load_index()
1710 tmpdb = NULL; in load_index()
1716 if (dbattr_conf != NULL) { in load_index()
1717 char *p = app_conf_try_string(dbattr_conf, NULL, "unique_subject"); in load_index()
1719 if (p != NULL) in load_index()
1741 if (!TXT_DB_create_index(db->db, DB_serial, NULL, in index_index()
1785 if (out == NULL) { in save_index()
1796 if (out == NULL) { in save_index()
1926 return NULL; in parse_name()
1930 if (n == NULL) { in parse_name()
1932 return NULL; in parse_name()
1935 if (work == NULL) { in parse_name()
2018 return NULL; in parse_name()
2033 if (mem == NULL) in bio_to_mem()
2066 char *stmp, *vtmp = NULL; in pkey_ctrl_string()
2069 if (stmp == NULL) in pkey_ctrl_string()
2072 if (vtmp == NULL) in pkey_ctrl_string()
2134 return NULL; in next_protos_parse()
2155 return NULL; in next_protos_parse()
2166 return NULL; in next_protos_parse()
2182 if (x == NULL) in check_cert_attributes()
2185 if (checkhost != NULL) { in check_cert_attributes()
2186 valid_host = X509_check_host(x, checkhost, 0, 0, NULL); in check_cert_attributes()
2193 if (checkemail != NULL) { in check_cert_attributes()
2201 if (checkip != NULL) { in check_cert_attributes()
2216 if (opts == NULL) in do_pkey_ctx_init()
2236 if (opts == NULL) in do_x509_init()
2256 if (opts == NULL) in do_x509_req_init()
2275 EVP_PKEY_CTX *pkctx = NULL; in do_sign_init()
2278 if (ctx == NULL) in do_sign_init()
2287 md = NULL; in do_sign_init()
2291 app_get0_propq(), pkey, NULL) in do_sign_init()
2299 X509_EXTENSION *new_ext = X509V3_EXT_nconf(NULL, ext_ctx, name, value); in adapt_keyid_ext()
2302 if (new_ext == NULL) in adapt_keyid_ext()
2360 if (mctx != NULL && do_sign_init(mctx, pkey, md, sigopts) > 0) in do_X509_sign()
2434 return NULL; in get_dp_url()
2446 return NULL; in get_dp_url()
2457 const char *urlptr = NULL; in load_crl_crldp()
2463 if (urlptr != NULL) in load_crl_crldp()
2466 return NULL; in load_crl_crldp()
2478 STACK_OF(X509_CRL) *crls = NULL; in STACK_OF()
2484 return NULL; in STACK_OF()
2486 crldp = X509_get_ext_d2i(x, NID_crl_distribution_points, NULL, NULL); in STACK_OF()
2491 return NULL; in STACK_OF()
2495 crldp = X509_get_ext_d2i(x, NID_freshest_crl, NULL, NULL); in STACK_OF()
2516 return NULL; /* likely no TLS error */ in tls_error_hint()
2530 return NULL; /* no hint available for TLS error */ in tls_error_hint()
2536 if (bio != NULL) { in http_tls_shutdown()
2540 if (hint != NULL) in http_tls_shutdown()
2558 if (ssl_ctx == NULL) /* not using TLS */ in app_http_tls_cb()
2562 BIO *sbio = NULL; in app_http_tls_cb()
2565 const char *host = vpm == NULL ? NULL : in app_http_tls_cb()
2571 NULL, NULL, /* no proxy credentials */ in app_http_tls_cb()
2573 || (sbio = BIO_new(BIO_f_ssl())) == NULL) { in app_http_tls_cb()
2574 return NULL; in app_http_tls_cb()
2576 if ((ssl = SSL_new(ssl_ctx)) == NULL) { in app_http_tls_cb()
2578 return NULL; in app_http_tls_cb()
2581 if (vpm != NULL) in app_http_tls_cb()
2596 if (info != NULL) { in APP_HTTP_TLS_INFO_free()
2613 ASN1_VALUE *resp = NULL; in app_http_get_asn1()
2615 if (url == NULL || it == NULL) { in app_http_get_asn1()
2617 return NULL; in app_http_get_asn1()
2620 if (!OSSL_HTTP_parse_url(url, &use_ssl, NULL /* userinfo */, &server, &port, in app_http_get_asn1()
2621 NULL /* port_num, */, NULL, NULL, NULL)) in app_http_get_asn1()
2622 return NULL; in app_http_get_asn1()
2623 if (use_ssl && ssl_ctx == NULL) { in app_http_get_asn1()
2628 if (!use_ssl && ssl_ctx != NULL) { in app_http_get_asn1()
2637 OSSL_HTTP_adapt_proxy(proxy, no_proxy, server, use_ssl) != NULL; in app_http_get_asn1()
2640 mem = OSSL_HTTP_get(url, proxy, no_proxy, NULL /* bio */, NULL /* rbio */, in app_http_get_asn1()
2644 resp = ASN1_item_d2i_bio(it, mem, NULL); in app_http_get_asn1()
2663 int use_ssl = ssl_ctx != NULL; in app_http_post_asn1()
2668 if (req_mem == NULL) in app_http_post_asn1()
2669 return NULL; in app_http_post_asn1()
2674 OSSL_HTTP_adapt_proxy(proxy, no_proxy, host, use_ssl) != NULL; in app_http_post_asn1()
2677 rsp = OSSL_HTTP_transfer(NULL, host, port, path, use_ssl, in app_http_post_asn1()
2678 proxy, no_proxy, NULL /* bio */, NULL /* rbio */, in app_http_post_asn1()
2685 res = ASN1_item_d2i_bio(rsp_it, rsp, NULL); in app_http_post_asn1()
2706 TCHAR *tfrom = NULL, *tto; in WIN32_rename()
2717 if (tfrom == NULL) in WIN32_rename()
2749 if (tfrom != NULL && tfrom != (TCHAR *)from) in WIN32_rename()
2765 static HANDLE proc = NULL; in app_tminterval()
2767 if (proc == NULL) { in app_tminterval()
2771 if (proc == NULL) in app_tminterval()
2883 gettimeofday(&now, NULL); in app_tminterval()
2945 if (ReadFile(GetStdHandle(STD_INPUT_HANDLE), buf, siz, &n, NULL)) in raw_read_stdin()
2969 if (WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), buf, siz, &n, NULL)) in raw_write_stdout()
3004 void *prefix = NULL; in dup_bio_out()
3006 if (b == NULL) in dup_bio_out()
3007 return NULL; in dup_bio_out()
3015 && (prefix = getenv("HARNESS_OSSL_PREFIX")) != NULL) { in dup_bio_out()
3029 if (b != NULL && FMT_istext(format)) in dup_bio_err()
3048 setbuf(fp, NULL); in unbuffer()
3067 return NULL; in modestr()
3088 FILE *fp = NULL; in bio_open_owner()
3089 BIO *b = NULL; in bio_open_owner()
3095 if (!private || filename == NULL || strcmp(filename, "-") == 0) in bio_open_owner()
3134 if (fp == NULL) in bio_open_owner()
3140 if (b != NULL) in bio_open_owner()
3148 if (fp != NULL) in bio_open_owner()
3154 return NULL; in bio_open_owner()
3162 if (filename == NULL || strcmp(filename, "-") == 0) { in bio_open_default_()
3168 if (ret != NULL) in bio_open_default_()
3179 if (ret != NULL) in bio_open_default_()
3186 return NULL; in bio_open_default_()
3209 if (!SSL_get_all_async_fds(s, NULL, &numfds)) in wait_for_async()
3225 select(width, (void *)&asyncfds, NULL, NULL, NULL); in wait_for_async()
3268 if (time == NULL || strcmp(time, "today") == 0 in check_cert_time_string()
3269 || ASN1_TIME_set_string_X509(NULL, time)) in check_cert_time_string()
3284 if (startdate == NULL || strcmp(startdate, "today") == 0) { in set_cert_times()
3285 if (X509_gmtime_adj(X509_getm_notBefore(x), 0) == NULL) { in set_cert_times()
3295 if (enddate != NULL && strcmp(enddate, "today") == 0) { in set_cert_times()
3296 enddate = NULL; in set_cert_times()
3299 if (enddate == NULL) { in set_cert_times()
3300 if (X509_time_adj_ex(X509_getm_notAfter(x), days, 0, NULL) == NULL) { in set_cert_times()
3322 if (tm == NULL) in set_crl_lastupdate()
3325 if (lastupdate == NULL) { in set_crl_lastupdate()
3326 if (X509_gmtime_adj(tm, 0) == NULL) in set_crl_lastupdate()
3348 if (tm == NULL) in set_crl_nextupdate()
3351 if (nextupdate == NULL) { in set_crl_nextupdate()
3352 if (X509_time_adj_ex(tm, days, hours * 60 * 60 + secs, NULL) == NULL) in set_crl_nextupdate()
3379 OSSL_PARAM *params = NULL; in app_params_new_from_opts()
3382 char *opt = "", *stmp, *vtmp = NULL; in app_params_new_from_opts()
3385 if (opts == NULL) in app_params_new_from_opts()
3386 return NULL; in app_params_new_from_opts()
3389 if (params == NULL) in app_params_new_from_opts()
3390 return NULL; in app_params_new_from_opts()
3394 if ((stmp = OPENSSL_strdup(opt)) == NULL in app_params_new_from_opts()
3395 || (vtmp = strchr(stmp, ':')) == NULL) in app_params_new_from_opts()
3414 return NULL; in app_params_new_from_opts()
3421 if (params != NULL) { in app_params_free()
3422 for (i = 0; params[i].key != NULL; ++i) in app_params_free()
3430 EVP_PKEY *res = NULL; in app_keygen()
3432 if (verbose && alg != NULL) { in app_keygen()
3444 alg != NULL ? alg : "asymmetric"); in app_keygen()
3450 EVP_PKEY *res = NULL; in app_paramgen()
3457 opt_getprog(), alg != NULL ? alg : "asymmetric"); in app_paramgen()
3469 int libctx = app_get0_libctx() != NULL || app_get0_propq() != NULL; in opt_legacy_okay()