Home
last modified time | relevance | path

Searched refs:args_map (Results 1 – 25 of 27) sorted by relevance

12

/external/rust/crates/quiche/deps/boringssl/src/tool/
Dclient.cc249 std::map<std::string, std::string> args_map, in DoConnection() argument
252 if (args_map.count("-http-tunnel") != 0) { in DoConnection()
253 if (!Connect(&sock, args_map["-http-tunnel"]) || in DoConnection()
254 !DoHTTPTunnel(sock, args_map["-connect"])) { in DoConnection()
257 } else if (!Connect(&sock, args_map["-connect"])) { in DoConnection()
261 if (args_map.count("-starttls") != 0) { in DoConnection()
262 const std::string& starttls = args_map["-starttls"]; in DoConnection()
276 if (args_map.count("-server-name") != 0) { in DoConnection()
277 SSL_set_tlsext_host_name(ssl.get(), args_map["-server-name"].c_str()); in DoConnection()
280 if (args_map.count("-ech-grease") != 0) { in DoConnection()
[all …]
Dserver.cc222 std::map<std::string, std::string> args_map; in Server() local
224 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in Server()
242 if (args_map.count("-key") != 0) { in Server()
243 std::string key = args_map["-key"]; in Server()
250 args_map.count("-cert") != 0 ? args_map["-cert"] : key; in Server()
275 if (args_map.count("-ech-key") + args_map.count("-ech-config") == 1) { in Server()
281 if (args_map.count("-ech-key") != 0) { in Server()
283 std::string ech_key_path = args_map["-ech-key"]; in Server()
293 std::string ech_config_path = args_map["-ech-config"]; in Server()
316 if (args_map.count("-cipher") != 0 && in Server()
[all …]
Dgenerate_ech.cc70 std::map<std::string, std::string> args_map; in GenerateECH() local
71 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateECH()
77 if (!GetUnsigned(&config_id, "-config-id", 0, args_map) || in GenerateECH()
84 if (args_map.count("-max-name-length") != 0 && in GenerateECH()
85 !GetUnsigned(&max_name_len, "-max-name-length", 0, args_map)) { in GenerateECH()
107 key.get(), args_map["-public-name"].c_str(), size_t{max_name_len})) { in GenerateECH()
123 args_map["-out-ech-config-list"], in GenerateECH()
125 !WriteToFile(args_map["-out-ech-config"], in GenerateECH()
127 !WriteToFile(args_map["-out-private-key"], in GenerateECH()
Dsign.cc32 std::map<std::string, std::string> args_map; in Sign() local
33 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in Sign()
40 if (!bio || !BIO_read_filename(bio.get(), args_map["-key"].c_str())) { in Sign()
50 if (args_map.count("-digest")) { in Sign()
51 md = EVP_get_digestbyname(args_map["-digest"].c_str()); in Sign()
54 args_map["-digest"].c_str()); in Sign()
Dgenerate_ed25519.cc38 std::map<std::string, std::string> args_map; in GenerateEd25519Key() local
40 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateEd25519Key()
48 return WriteToFile(args_map["-out-public"], public_key) && in GenerateEd25519Key()
49 WriteToFile(args_map["-out-private"], private_key); in GenerateEd25519Key()
Dpkcs12.cc54 std::map<std::string, std::string> args_map; in DoPKCS12() local
56 if (!ParseKeyValueArguments(&args_map, args, kArguments) || in DoPKCS12()
57 args_map["-dump"].empty()) { in DoPKCS12()
62 ScopedFD fd = OpenFD(args_map["-dump"].c_str(), O_RDONLY); in DoPKCS12()
Dgenrsa.cc35 std::map<std::string, std::string> args_map; in GenerateRSAKey() local
37 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateRSAKey()
43 if (!GetUnsigned(&bits, "-bits", 2048, args_map)) { in GenerateRSAKey()
Drand.cc55 std::map<std::string, std::string> args_map; in Rand() local
56 if (!ParseKeyValueArguments(&args_map, args_copy, kArguments)) { in Rand()
61 hex = args_map.count("-hex") > 0; in Rand()
Dspeed.cc1285 std::map<std::string, std::string> args_map; in Speed() local
1286 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in Speed()
1292 if (args_map.count("-filter") != 0) { in Speed()
1293 selected = args_map["-filter"]; in Speed()
1296 if (args_map.count("-json") != 0) { in Speed()
1300 if (args_map.count("-timeout") != 0) { in Speed()
1301 g_timeout_seconds = atoi(args_map["-timeout"].c_str()); in Speed()
1304 if (args_map.count("-chunks") != 0) { in Speed()
1306 const char *start = args_map["-chunks"].data(); in Speed()
1307 const char *end = start + args_map["-chunks"].size(); in Speed()
/external/boringssl/src/tool/
Dclient.cc249 std::map<std::string, std::string> args_map, in DoConnection() argument
252 if (args_map.count("-http-tunnel") != 0) { in DoConnection()
253 if (!Connect(&sock, args_map["-http-tunnel"]) || in DoConnection()
254 !DoHTTPTunnel(sock, args_map["-connect"])) { in DoConnection()
257 } else if (!Connect(&sock, args_map["-connect"])) { in DoConnection()
261 if (args_map.count("-starttls") != 0) { in DoConnection()
262 const std::string& starttls = args_map["-starttls"]; in DoConnection()
276 if (args_map.count("-server-name") != 0) { in DoConnection()
277 SSL_set_tlsext_host_name(ssl.get(), args_map["-server-name"].c_str()); in DoConnection()
280 if (args_map.count("-ech-grease") != 0) { in DoConnection()
[all …]
Dserver.cc238 std::map<std::string, std::string> args_map; in Server() local
240 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in Server()
258 if (args_map.count("-key") != 0) { in Server()
259 std::string key = args_map["-key"]; in Server()
266 args_map.count("-cert") != 0 ? args_map["-cert"] : key; in Server()
291 if (args_map.count("-ech-key") + args_map.count("-ech-config") == 1) { in Server()
297 if (args_map.count("-ech-key") != 0) { in Server()
299 std::string ech_key_path = args_map["-ech-key"]; in Server()
309 std::string ech_config_path = args_map["-ech-config"]; in Server()
332 if (args_map.count("-cipher") != 0 && in Server()
[all …]
Dgenerate_ech.cc70 std::map<std::string, std::string> args_map; in GenerateECH() local
71 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateECH()
77 if (!GetUnsigned(&config_id, "-config-id", 0, args_map) || in GenerateECH()
84 if (args_map.count("-max-name-length") != 0 && in GenerateECH()
85 !GetUnsigned(&max_name_len, "-max-name-length", 0, args_map)) { in GenerateECH()
107 key.get(), args_map["-public-name"].c_str(), size_t{max_name_len})) { in GenerateECH()
123 args_map["-out-ech-config-list"], in GenerateECH()
125 !WriteToFile(args_map["-out-ech-config"], in GenerateECH()
127 !WriteToFile(args_map["-out-private-key"], in GenerateECH()
Dsign.cc32 std::map<std::string, std::string> args_map; in Sign() local
33 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in Sign()
40 if (!bio || !BIO_read_filename(bio.get(), args_map["-key"].c_str())) { in Sign()
50 if (args_map.count("-digest")) { in Sign()
51 md = EVP_get_digestbyname(args_map["-digest"].c_str()); in Sign()
54 args_map["-digest"].c_str()); in Sign()
Dgenerate_ed25519.cc38 std::map<std::string, std::string> args_map; in GenerateEd25519Key() local
40 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateEd25519Key()
48 return WriteToFile(args_map["-out-public"], public_key) && in GenerateEd25519Key()
49 WriteToFile(args_map["-out-private"], private_key); in GenerateEd25519Key()
Dpkcs12.cc54 std::map<std::string, std::string> args_map; in DoPKCS12() local
56 if (!ParseKeyValueArguments(&args_map, args, kArguments) || in DoPKCS12()
57 args_map["-dump"].empty()) { in DoPKCS12()
62 ScopedFD fd = OpenFD(args_map["-dump"].c_str(), O_RDONLY); in DoPKCS12()
Dgenrsa.cc35 std::map<std::string, std::string> args_map; in GenerateRSAKey() local
37 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateRSAKey()
43 if (!GetUnsigned(&bits, "-bits", 2048, args_map)) { in GenerateRSAKey()
Drand.cc55 std::map<std::string, std::string> args_map; in Rand() local
56 if (!ParseKeyValueArguments(&args_map, args_copy, kArguments)) { in Rand()
61 hex = args_map.count("-hex") > 0; in Rand()
/external/cronet/third_party/boringssl/src/tool/
Dclient.cc249 std::map<std::string, std::string> args_map, in DoConnection() argument
252 if (args_map.count("-http-tunnel") != 0) { in DoConnection()
253 if (!Connect(&sock, args_map["-http-tunnel"]) || in DoConnection()
254 !DoHTTPTunnel(sock, args_map["-connect"])) { in DoConnection()
257 } else if (!Connect(&sock, args_map["-connect"])) { in DoConnection()
261 if (args_map.count("-starttls") != 0) { in DoConnection()
262 const std::string& starttls = args_map["-starttls"]; in DoConnection()
276 if (args_map.count("-server-name") != 0) { in DoConnection()
277 SSL_set_tlsext_host_name(ssl.get(), args_map["-server-name"].c_str()); in DoConnection()
280 if (args_map.count("-ech-grease") != 0) { in DoConnection()
[all …]
Dserver.cc238 std::map<std::string, std::string> args_map; in Server() local
240 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in Server()
258 if (args_map.count("-key") != 0) { in Server()
259 std::string key = args_map["-key"]; in Server()
266 args_map.count("-cert") != 0 ? args_map["-cert"] : key; in Server()
291 if (args_map.count("-ech-key") + args_map.count("-ech-config") == 1) { in Server()
297 if (args_map.count("-ech-key") != 0) { in Server()
299 std::string ech_key_path = args_map["-ech-key"]; in Server()
309 std::string ech_config_path = args_map["-ech-config"]; in Server()
332 if (args_map.count("-cipher") != 0 && in Server()
[all …]
Dgenerate_ech.cc70 std::map<std::string, std::string> args_map; in GenerateECH() local
71 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateECH()
77 if (!GetUnsigned(&config_id, "-config-id", 0, args_map) || in GenerateECH()
84 if (args_map.count("-max-name-length") != 0 && in GenerateECH()
85 !GetUnsigned(&max_name_len, "-max-name-length", 0, args_map)) { in GenerateECH()
107 key.get(), args_map["-public-name"].c_str(), size_t{max_name_len})) { in GenerateECH()
123 args_map["-out-ech-config-list"], in GenerateECH()
125 !WriteToFile(args_map["-out-ech-config"], in GenerateECH()
127 !WriteToFile(args_map["-out-private-key"], in GenerateECH()
Dsign.cc32 std::map<std::string, std::string> args_map; in Sign() local
33 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in Sign()
40 if (!bio || !BIO_read_filename(bio.get(), args_map["-key"].c_str())) { in Sign()
50 if (args_map.count("-digest")) { in Sign()
51 md = EVP_get_digestbyname(args_map["-digest"].c_str()); in Sign()
54 args_map["-digest"].c_str()); in Sign()
Dgenerate_ed25519.cc38 std::map<std::string, std::string> args_map; in GenerateEd25519Key() local
40 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateEd25519Key()
48 return WriteToFile(args_map["-out-public"], public_key) && in GenerateEd25519Key()
49 WriteToFile(args_map["-out-private"], private_key); in GenerateEd25519Key()
Dpkcs12.cc54 std::map<std::string, std::string> args_map; in DoPKCS12() local
56 if (!ParseKeyValueArguments(&args_map, args, kArguments) || in DoPKCS12()
57 args_map["-dump"].empty()) { in DoPKCS12()
62 ScopedFD fd = OpenFD(args_map["-dump"].c_str(), O_RDONLY); in DoPKCS12()
Dgenrsa.cc35 std::map<std::string, std::string> args_map; in GenerateRSAKey() local
37 if (!ParseKeyValueArguments(&args_map, args, kArguments)) { in GenerateRSAKey()
43 if (!GetUnsigned(&bits, "-bits", 2048, args_map)) { in GenerateRSAKey()
Drand.cc55 std::map<std::string, std::string> args_map; in Rand() local
56 if (!ParseKeyValueArguments(&args_map, args_copy, kArguments)) { in Rand()
61 hex = args_map.count("-hex") > 0; in Rand()

12