aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/bad_ssl/servers
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-05-18 08:20:18 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-05-18 08:20:18 -0700
commit7a1a38906236143b122ebe8393f25c66292af3b4 (patch)
tree325c0bd6545a3dc32bef4ad91abf1d4df8640699 /test/core/bad_ssl/servers
parentf99010171818a7823ff5790596f657b30d271b43 (diff)
Fix compile errors
Diffstat (limited to 'test/core/bad_ssl/servers')
-rw-r--r--test/core/bad_ssl/servers/cert.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/test/core/bad_ssl/servers/cert.c b/test/core/bad_ssl/servers/cert.c
index bd11efd314..67c3e29ce0 100644
--- a/test/core/bad_ssl/servers/cert.c
+++ b/test/core/bad_ssl/servers/cert.c
@@ -52,16 +52,15 @@ int main(int argc, char **argv) {
grpc_server_credentials *ssl_creds;
grpc_server *server;
gpr_slice cert_slice, key_slice;
- int ok;
grpc_init();
- cert_slice =
- gpr_load_file("src/core/lib/tsi/test_creds/badserver.pem", 1, &ok);
- GPR_ASSERT(ok);
- key_slice =
- gpr_load_file("src/core/lib/tsi/test_creds/badserver.key", 1, &ok);
- GPR_ASSERT(ok);
+ GPR_ASSERT(GRPC_LOG_IF_ERROR(
+ "load_file", gpr_load_file("src/core/lib/tsi/test_creds/badserver.pem", 1,
+ &cert_slice)));
+ GPR_ASSERT(GRPC_LOG_IF_ERROR(
+ "load_file", gpr_load_file("src/core/lib/tsi/test_creds/badserver.key", 1,
+ &key_slice)));
pem_key_cert_pair.private_key = (const char *)GPR_SLICE_START_PTR(key_slice);
pem_key_cert_pair.cert_chain = (const char *)GPR_SLICE_START_PTR(cert_slice);