aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/pb/test
diff options
context:
space:
mode:
authorGravatar Tim Emiola <temiola@google.com>2015-08-28 18:56:17 -0700
committerGravatar Tim Emiola <temiola@google.com>2015-08-31 09:40:32 -0700
commit73a540ae577b10e83b81d0cb60da816294a3a5bb (patch)
tree77e361e812345fda945477cdd2850a1bc48dd0da /src/ruby/pb/test
parent14d0a3c7968fb14a94fcaa1fe182e853ad361576 (diff)
Update sites using ServerCredentials.new
Diffstat (limited to 'src/ruby/pb/test')
-rwxr-xr-xsrc/ruby/pb/test/server.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ruby/pb/test/server.rb b/src/ruby/pb/test/server.rb
index e2e1ecbd62..a311bb76e6 100755
--- a/src/ruby/pb/test/server.rb
+++ b/src/ruby/pb/test/server.rb
@@ -64,7 +64,8 @@ end
# creates a ServerCredentials from the test certificates.
def test_server_creds
certs = load_test_certs
- GRPC::Core::ServerCredentials.new(nil, certs[1], certs[2])
+ GRPC::Core::ServerCredentials.new(
+ nil, [{private_key: certs[1], cert_chain: certs[2]}], false)
end
# produces a string of null chars (\0) of length l.