aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/tests/simple_delayed_request.c
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-02-23 15:57:14 -0800
committerGravatar Julien Boeuf <jboeuf@google.com>2015-02-23 16:41:26 -0800
commit597a4f2273f9dda0dbac45b021706ce8b715f93c (patch)
tree4a7156731efc3fa40ad3cf7e43455d8cc3050c56 /test/core/end2end/tests/simple_delayed_request.c
parent571a9c8df47db831de0ea40c500bbc790743c7b2 (diff)
Verifying the peer name on the X509 Certs correctly.
- The SANs take precedence over the CN. - The CN is only checked if there are no SANs. - Fixing the tests as the test cert did not list *.test.google.com in the SANs. Will fix the test cert another time...
Diffstat (limited to 'test/core/end2end/tests/simple_delayed_request.c')
-rw-r--r--test/core/end2end/tests/simple_delayed_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/end2end/tests/simple_delayed_request.c b/test/core/end2end/tests/simple_delayed_request.c
index 0a3eb7c7b7..83b065b59e 100644
--- a/test/core/end2end/tests/simple_delayed_request.c
+++ b/test/core/end2end/tests/simple_delayed_request.c
@@ -114,7 +114,7 @@ static void simple_delayed_request_body(grpc_end2end_test_config config,
config.init_client(f, client_args);
c = grpc_channel_create_call(f->client, f->client_cq, "/foo",
- "foo.test.google.com", deadline);
+ "foo.test.google.fr", deadline);
GPR_ASSERT(c);
grpc_metadata_array_init(&initial_metadata_recv);
@@ -172,7 +172,7 @@ static void simple_delayed_request_body(grpc_end2end_test_config config,
GPR_ASSERT(status == GRPC_STATUS_UNIMPLEMENTED);
GPR_ASSERT(0 == strcmp(details, "xyz"));
GPR_ASSERT(0 == strcmp(call_details.method, "/foo"));
- GPR_ASSERT(0 == strcmp(call_details.host, "foo.test.google.com"));
+ GPR_ASSERT(0 == strcmp(call_details.host, "foo.test.google.fr"));
GPR_ASSERT(was_cancelled == 0);
gpr_free(details);