aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-11-30 12:33:21 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-11-30 12:33:21 -0800
commite6e1c9e7a1d5c57121822c77cee36c441fc315ba (patch)
tree3a5b2fd648b42fe6dc397a247dbbb4177bee62a0 /src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
parentb62f364d0a6a4413c1535dd5fbbfea288142fc02 (diff)
Fix link problem for insecure target.
Diffstat (limited to 'src/core/ext/transport/chttp2/client/secure/secure_channel_create.c')
-rw-r--r--src/core/ext/transport/chttp2/client/secure/secure_channel_create.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c b/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
index a5cc1633ae..928bc0b352 100644
--- a/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
+++ b/src/core/ext/transport/chttp2/client/secure/secure_channel_create.c
@@ -68,13 +68,20 @@ static void client_channel_factory_unref(
}
}
+static void create_handshakers(grpc_exec_ctx* exec_ctx,
+ void* security_connector,
+ grpc_handshake_manager* handshake_mgr) {
+ grpc_channel_security_connector_create_handshakers(
+ exec_ctx, security_connector, handshake_mgr);
+}
+
static grpc_subchannel *client_channel_factory_create_subchannel(
grpc_exec_ctx *exec_ctx, grpc_client_channel_factory *cc_factory,
const grpc_subchannel_args *args) {
client_channel_factory *f = (client_channel_factory *)cc_factory;
grpc_connector *connector =
grpc_chttp2_connector_create(exec_ctx, args->server_name,
- f->security_connector);
+ create_handshakers, f->security_connector);
grpc_subchannel *s = grpc_subchannel_create(exec_ctx, connector, args);
grpc_connector_unref(exec_ctx, connector);
return s;