aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/interop/server.cc
diff options
context:
space:
mode:
authorGravatar vjpai <vpai@google.com>2015-03-26 17:12:17 -0400
committerGravatar Vijay S Pai <vpaiwl@gmail.com>2015-03-26 17:12:17 -0400
commit6130809a8bc792c952cb15f4931634cc47b35219 (patch)
treed2e6a816db1059afa83e00904f478a19f2fb6429 /test/cpp/interop/server.cc
parent92a928fa6846362c102d9628ce0453c6229fb9be (diff)
Work around a compiler limitation caused by inability to properly handle
vectors created from initializer list
Diffstat (limited to 'test/cpp/interop/server.cc')
-rw-r--r--test/cpp/interop/server.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/cpp/interop/server.cc b/test/cpp/interop/server.cc
index eceb600d4c..780a7370ac 100644
--- a/test/cpp/interop/server.cc
+++ b/test/cpp/interop/server.cc
@@ -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);