Skip to content

Commit

Permalink
Work around a compiler limitation caused by inability to properly handle
Browse files Browse the repository at this point in the history
vectors created from initializer list
  • Loading branch information
vjpai committed Mar 26, 2015
1 parent 92a928f commit 6130809
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/cpp/interop/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,11 @@ void RunServer() {
builder.RegisterService(&service);
std::shared_ptr<ServerCredentials> creds = grpc::InsecureServerCredentials();
if (FLAGS_enable_ssl) {
SslServerCredentialsOptions ssl_opts = {
"", {{test_server1_key, test_server1_cert}}};
SslServerCredentialsOptions::PemKeyCertPair pkcp = {test_server1_key,
test_server1_cert};
SslServerCredentialsOptions ssl_opts;
ssl_opts.pem_root_certs = "";
ssl_opts.pem_key_cert_pairs.push_back(pkcp);
creds = grpc::SslServerCredentials(ssl_opts);
}
builder.AddListeningPort(server_address.str(), creds);
Expand Down

0 comments on commit 6130809

Please sign in to comment.