diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-02-22 23:09:45 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-02-23 09:58:22 -0800 |
commit | 759026cbf0419dae4edddd9e75fa338e1028a3d8 (patch) | |
tree | 0b5794b584271006351dcac532732ce64b38f889 /test/core/echo | |
parent | 47c83fdaf71ca5072d0ab37322b37586d23f5ceb (diff) |
Server API simplification
Remove 'secure_serer_create', and instead attach credentials to ports, meaning different ports can serve different credentials.
Diffstat (limited to 'test/core/echo')
-rw-r--r-- | test/core/echo/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/echo/server.c b/test/core/echo/server.c index 83da8b644d..8c9175e3cf 100644 --- a/test/core/echo/server.c +++ b/test/core/echo/server.c @@ -143,8 +143,8 @@ int main(int argc, char **argv) { test_server1_cert}; grpc_server_credentials *ssl_creds = grpc_ssl_server_credentials_create(NULL, &pem_key_cert_pair, 1); - server = grpc_secure_server_create(ssl_creds, cq, &args); - GPR_ASSERT(grpc_server_add_secure_http2_port(server, addr)); + server = grpc_server_create(cq, &args); + GPR_ASSERT(grpc_server_add_secure_http2_port(server, addr, ssl_creds)); grpc_server_credentials_release(ssl_creds); } else { server = grpc_server_create(cq, &args); |