in source/secure_tunneling.c [428:440]
static int s_secure_tunneling_connect(struct aws_secure_tunnel *secure_tunnel) {
if (secure_tunnel == NULL || secure_tunnel->stream_id != INVALID_STREAM_ID) {
return AWS_OP_ERR;
}
struct aws_websocket_client_connection_options websocket_options;
init_websocket_client_connection_options(secure_tunnel, &websocket_options);
if (aws_websocket_client_connect(&websocket_options)) {
return AWS_OP_ERR;
}
return AWS_OP_SUCCESS;
}