Lines Matching refs:uri
481 #define IS_HTTP(uri) ((uri) != NULL && HAS_PREFIX(uri, OSSL_HTTP_PREFIX)) argument
482 #define IS_HTTPS(uri) ((uri) != NULL && HAS_PREFIX(uri, OSSL_HTTPS_PREFIX)) argument
484 X509 *load_cert_pass(const char *uri, int format, int maybe_stdin, in load_cert_pass() argument
491 if (IS_HTTPS(uri)) { in load_cert_pass()
493 } else if (IS_HTTP(uri)) { in load_cert_pass()
494 cert = X509_load_http(uri, NULL, NULL, 0 /* timeout */); in load_cert_pass()
497 BIO_printf(bio_err, "Unable to load %s from %s\n", desc, uri); in load_cert_pass()
500 (void)load_key_certs_crls(uri, format, maybe_stdin, pass, desc, 0, in load_cert_pass()
506 X509_CRL *load_crl(const char *uri, int format, int maybe_stdin, in load_crl() argument
513 if (IS_HTTPS(uri)) { in load_crl()
515 } else if (IS_HTTP(uri)) { in load_crl()
516 crl = X509_CRL_load_http(uri, NULL, NULL, 0 /* timeout */); in load_crl()
519 BIO_printf(bio_err, "Unable to load %s from %s\n", desc, uri); in load_crl()
522 (void)load_key_certs_crls(uri, format, maybe_stdin, NULL, desc, 0, in load_crl()
605 EVP_PKEY *load_key(const char *uri, int format, int may_stdin, in load_key() argument
615 uri = allocated_uri = make_engine_uri(e, uri, desc); in load_key()
616 (void)load_key_certs_crls(uri, format, may_stdin, pass, desc, 0, in load_key()
624 EVP_PKEY *load_pubkey(const char *uri, int format, int maybe_stdin, in load_pubkey() argument
634 uri = allocated_uri = make_engine_uri(e, uri, desc); in load_pubkey()
635 (void)load_key_certs_crls(uri, format, maybe_stdin, pass, desc, 1, in load_pubkey()
638 (void)load_key_certs_crls(uri, format, maybe_stdin, pass, desc, 0, in load_pubkey()
644 EVP_PKEY *load_keyparams_suppress(const char *uri, int format, int maybe_stdin, in load_keyparams_suppress() argument
652 (void)load_key_certs_crls(uri, format, maybe_stdin, NULL, desc, in load_keyparams_suppress()
659 desc, uri); in load_keyparams_suppress()
666 EVP_PKEY *load_keyparams(const char *uri, int format, int maybe_stdin, in load_keyparams() argument
669 return load_keyparams_suppress(uri, format, maybe_stdin, keytype, desc, 0); in load_keyparams()
708 static void warn_cert_msg(const char *uri, X509 *cert, const char *msg) in warn_cert_msg() argument
713 uri, subj, msg); in warn_cert_msg()
717 static void warn_cert(const char *uri, X509 *cert, int warn_EE, in warn_cert() argument
725 warn_cert_msg(uri, cert, res > 0 ? "has expired" : "not yet valid"); in warn_cert()
727 warn_cert_msg(uri, cert, "is not a CA cert"); in warn_cert()
730 static void warn_certs(const char *uri, STACK_OF(X509) *certs, int warn_EE, in warn_certs() argument
736 warn_cert(uri, sk_X509_value(certs, i), warn_EE, vpm); in warn_certs()
739 int load_cert_certs(const char *uri, in load_cert_certs() argument
749 if (exclude_http && (HAS_CASE_PREFIX(uri, "http://") in load_cert_certs()
750 || HAS_CASE_PREFIX(uri, "https://"))) { in load_cert_certs()
755 ret = load_key_certs_crls(uri, FORMAT_UNDEF, 0, pass_string, desc, 0, in load_cert_certs()
761 warn_cert(uri, *pcert, 0, vpm); in load_cert_certs()
763 warn_certs(uri, *pcerts, 1, vpm); in load_cert_certs()
856 int load_certs(const char *uri, int maybe_stdin, STACK_OF(X509) **certs, in load_certs() argument
863 ret = load_key_certs_crls(uri, FORMAT_UNDEF, maybe_stdin, pass, desc, 0, in load_certs()
877 int load_crls(const char *uri, STACK_OF(X509_CRL) **crls, in load_crls() argument
884 ret = load_key_certs_crls(uri, FORMAT_UNDEF, 0, pass, desc, 0, in load_crls()
934 int load_key_certs_crls(const char *uri, int format, int maybe_stdin, in load_key_certs_crls() argument
955 uri != NULL ? uri : "<stdin>"); in load_key_certs_crls()
1001 uidata.prompt_info = uri; in load_key_certs_crls()
1010 if (uri == NULL) { in load_key_certs_crls()
1018 uri = "<stdin>"; in load_key_certs_crls()
1028 ctx = OSSL_STORE_open_ex(uri, libctx, propq, get_ui_method(), &uidata, in load_key_certs_crls()
1152 if (uri != NULL) in load_key_certs_crls()
1153 BIO_printf(bio_err, " from %s", uri); in load_key_certs_crls()
2460 ASN1_STRING *uri; in get_dp_url() local
2467 uri = GENERAL_NAME_get0_value(gen, >ype); in get_dp_url()
2468 if (gtype == GEN_URI && ASN1_STRING_length(uri) > 6) { in get_dp_url()
2469 const char *uptr = (const char *)ASN1_STRING_get0_data(uri); in get_dp_url()