diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-01-23 08:12:38 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-01-23 08:12:38 -0800 |
commit | 0a2077176524ae08eeb02fcd63f1e3e28a715741 (patch) | |
tree | 46486fde885c8b29dc7818e4067e2bd82695050b /test/core/echo | |
parent | 3cc24a6d7f1352dce0d13d229ddb911114030aa6 (diff) |
Update to the latest security API
Diffstat (limited to 'test/core/echo')
-rw-r--r-- | test/core/echo/server.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/core/echo/server.c b/test/core/echo/server.c index 93feba2668..c20260884b 100644 --- a/test/core/echo/server.c +++ b/test/core/echo/server.c @@ -139,10 +139,11 @@ int main(int argc, char **argv) { cq = grpc_completion_queue_create(); if (secure) { - grpc_server_credentials *ssl_creds = grpc_ssl_server_credentials_create( - NULL, 0, test_server1_key, test_server1_key_size, test_server1_cert, - test_server1_cert_size); - server = grpc_secure_server_create(ssl_creds, cq, &args); + grpc_ssl_pem_key_cert_pair pem_key_cert_pair = {test_server1_key, + 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, NULL); GPR_ASSERT(grpc_server_add_secure_http2_port(server, addr)); grpc_server_credentials_release(ssl_creds); } else { |