mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
nghttpx: Use StringRef for tls.subcerts
This commit is contained in:
@@ -2182,7 +2182,9 @@ int parse_config(Config *config, int optid, const StringRef &opt,
|
||||
return -1;
|
||||
}
|
||||
|
||||
config->tls.subcerts.emplace_back(private_key_file.str(), cert_file.str());
|
||||
config->tls.subcerts.emplace_back(
|
||||
make_string_ref(config->balloc, private_key_file),
|
||||
make_string_ref(config->balloc, cert_file));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ struct TLSConfig {
|
||||
} client;
|
||||
|
||||
// The list of (private key file, certificate file) pair
|
||||
std::vector<std::pair<std::string, std::string>> subcerts;
|
||||
std::vector<std::pair<StringRef, StringRef>> subcerts;
|
||||
std::vector<unsigned char> alpn_prefs;
|
||||
// list of supported NPN/ALPN protocol strings in the order of
|
||||
// preference.
|
||||
|
||||
Reference in New Issue
Block a user