Home
last modified time | relevance | path

Searched refs:key_file (Results 1 – 25 of 29) sorted by relevance

12

/netbsd-src/crypto/external/bsd/openssl/dist/test/recipes/
H A D15-test_rsaoaep.t38 my $key_file = srctop_file("test", "testrsa2048.pem");
62 '-inkey', $key_file,
73 '-in', $key_file,
74 '-inkey', $key_file,
84 '-inkey', $key_file,
97 '-inkey', $key_file,
108 '-inkey', $key_file,
120 '-inkey', $key_file,
132 '-inkey', $key_file,
144 '-inkey', $key_file,
[all …]
/netbsd-src/usr.bin/btkey/
H A Dfile.c42 static const char *key_file = "/var/db/bthcid.keys"; variable
57 db = prop_dictionary_internalize_from_file(key_file); in list_file()
102 db = prop_dictionary_internalize_from_file(key_file); in read_file()
133 db = prop_dictionary_internalize_from_file(key_file); in write_file()
162 rv = prop_dictionary_externalize_to_file(db, key_file); in write_file()
181 db = prop_dictionary_internalize_from_file(key_file); in clear_file()
196 rv = prop_dictionary_externalize_to_file(db, key_file); in clear_file()
/netbsd-src/usr.bin/nbsvtool/
H A Dnbsvtool.c245 load_keys(const char *cert_file, const char *chain_file, const char *key_file) in load_keys() argument
253 if (key_file == NULL) in load_keys()
267 f = fopen(key_file, "r"); in load_keys()
269 errx(1, "Failed to open private key file %s", key_file); in load_keys()
275 errx(EXIT_FAILURE, "Can't read private key %s", key_file); in load_keys()
282 key_file, cert_file); in load_keys()
305 const char *cert_file = NULL, *key_file = NULL, *chain_file = NULL; in main() local
326 key_file = optarg; in main()
372 load_keys(cert_file, chain_file, key_file); in main()
/netbsd-src/external/ibm-public/postfix/dist/src/tls/
H A Dtls_certkey.c541 const char *key_file) in set_cert_stuff() argument
548 if (strcmp(cert_file, key_file) == 0) in set_cert_stuff()
564 if (SSL_CTX_use_PrivateKey_file(ctx, key_file, SSL_FILETYPE_PEM) <= 0) { in set_cert_stuff()
566 "disabling TLS support", cert_type, key_file); in set_cert_stuff()
576 "disabling TLS support", cert_type, key_file, cert_file); in set_cert_stuff()
586 const char *key_file, in tls_set_my_certificate_key_info() argument
601 if (*cert_file && !set_cert_stuff(ctx, "RSA", cert_file, key_file)) in tls_set_my_certificate_key_info()
650 char *key_file = 0; in main() local
660 key_file = optarg; in main()
675 if (key_file) in main()
[all …]
H A Dtls_proxy_server_scan.c99 VSTRING *key_file = vstring_alloc(25); in tls_proxy_server_init_scan() local
124 RECV_ATTR_STR(TLS_ATTR_KEY_FILE, key_file), in tls_proxy_server_init_scan()
144 props->key_file = vstring_export(key_file); in tls_proxy_server_init_scan()
174 myfree((void *) props->key_file); in tls_proxy_server_init_free()
H A Dtls_proxy_client_scan.c235 myfree((void *) props->key_file); in tls_proxy_client_init_free()
259 VSTRING *key_file = vstring_alloc(25); in tls_proxy_client_init_scan() local
282 RECV_ATTR_STR(TLS_ATTR_KEY_FILE, key_file), in tls_proxy_client_init_scan()
297 props->key_file = vstring_export(key_file); in tls_proxy_client_init_scan()
H A Dtls_proxy_server_print.c88 STRING_OR_EMPTY(props->key_file)), in tls_proxy_server_init_print()
H A Dtls.h462 const char *key_file; member
531 const char *key_file; member
H A Dtls_proxy_client_print.c163 STRING_OR_EMPTY(props->key_file)), in tls_proxy_client_init_print()
H A Dtls_client.c787 props->key_file, in tls_client_init()
/netbsd-src/usr.sbin/bthcid/
H A Dconfig.c48 static const char *key_file = "/var/db/bthcid.keys"; variable
59 fd = open(key_file, O_RDONLY, 0); in load_keys()
186 syslog(LOG_ERR, "Cannot open new keyfile %s: %m", key_file); in save_key()
203 if (rename(new_key_file, key_file) < 0) { in save_key()
205 new_key_file, key_file); in save_key()
/netbsd-src/external/bsd/pkg_install/dist/lib/
H A Dpkcs7.c232 const char *key_file, const char *cert_file) in easy_pkcs7_sign() argument
276 if ((f = fopen(key_file, "r")) == NULL) { in easy_pkcs7_sign()
277 warn("Failed to open private key file %s", key_file); in easy_pkcs7_sign()
283 warnx("Can't read private key: %s", key_file); in easy_pkcs7_sign()
289 key_file, cert_file); in easy_pkcs7_sign()
H A Dpkg_signature.c523 pkg_sign_x509(const char *name, const char *output, const char *key_file, const char *cert_file) in pkg_sign_x509() argument
564 &signature_len, key_file, cert_file)) in pkg_sign_x509()
/netbsd-src/external/bsd/ntp/dist/ntpdate/
H A Dntpdate.c191 const char *key_file = KEYFILE; variable
193 char key_file_storage[MAX_PATH+1], *key_file ; variable
326 key_file = key_file_storage; in ntpdatemain()
328 if (!ExpandEnvironmentStrings(KEYFILE, key_file, MAX_PATH)) in ntpdatemain()
392 key_file = ntp_optarg; in ntpdatemain()
525 if (!authreadkeys(key_file)) { in ntpdatemain()
526 msyslog(LOG_ERR, "no key file <%s>, exiting", key_file); in ntpdatemain()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/ossl_shim/
H A Dtest_config.h23 std::string key_file; member
H A Dtest_config.cc90 { "-key-file", &TestConfig::key_file },
H A Dossl_shim.cc152 if (!config->key_file.empty()) { in GetCertificate()
153 *out_pkey = LoadPrivateKey(config->key_file.c_str()); in GetCertificate()
/netbsd-src/crypto/external/bsd/openssl.old/dist/apps/
H A Ds_cb.c112 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file) in set_cert_stuff() argument
122 if (key_file == NULL) in set_cert_stuff()
123 key_file = cert_file; in set_cert_stuff()
124 if (SSL_CTX_use_PrivateKey_file(ctx, key_file, SSL_FILETYPE_PEM) <= 0) { in set_cert_stuff()
126 key_file); in set_cert_stuff()
H A Ds_apps.h24 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
H A Ds_client.c902 char *cert_file = NULL, *key_file = NULL, *chain_file = NULL; in s_client_main() local
1383 key_file = opt_arg(); in s_client_main()
1668 if (key_file == NULL) in s_client_main()
1669 key_file = cert_file; in s_client_main()
1671 if (key_file != NULL) { in s_client_main()
1672 key = load_key(key_file, key_format, 0, pass, e, in s_client_main()
/netbsd-src/crypto/external/bsd/openssl/dist/apps/include/
H A Ds_apps.h26 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
/netbsd-src/external/ibm-public/postfix/dist/src/tlsproxy/
H A Dtlsproxy.c1300 || NOT_EMPTY(init_props->key_file) in tlsp_client_init()
1625 key_file = var_tlsp_tls_key_file, in pre_jail_init_server()
1760 key_file = var_tlsp_clnt_key_file, in pre_jail_init_client()
/netbsd-src/crypto/external/bsd/openssl/dist/apps/
H A Ds_client.c804 char *cert_file = NULL, *key_file = NULL, *chain_file = NULL; in s_client_main() local
1304 key_file = opt_arg(); in s_client_main()
1624 if (key_file == NULL) in s_client_main()
1625 key_file = cert_file; in s_client_main()
1627 if (key_file != NULL) { in s_client_main()
1628 key = load_key(key_file, key_format, 0, pass, e, in s_client_main()
/netbsd-src/external/ibm-public/postfix/dist/src/smtp/
H A Dsmtp.c1532 key_file = var_smtp_tls_key_file, in pre_init()
/netbsd-src/external/mpl/bind/dist/lib/dns/
H A Dxfrin.c1020 const char *key_file = get_create_tlsctx() local

12