nghttpx: Use StringRef for tls.subcerts
This commit is contained in:
parent
1037d3ad26
commit
de7b7fd440
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue