nghttpx: Use StringRef for tls.subcerts

This commit is contained in:
Tatsuhiro Tsujikawa 2016-10-02 22:12:40 +09:00
parent 1037d3ad26
commit de7b7fd440
2 changed files with 4 additions and 2 deletions

View File

@ -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;
}

View File

@ -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.