summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-04-09 12:49:06 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-04-09 12:49:06 +0200
commitad1313c2e5cf273aec7bf5415876d389ea8d8ae7 (patch)
tree3eb815692ffbf29092156d304d23c7880ef5e6b3 /src
parent0cb9f792b8d2285949c5108371bf070b2475c55d (diff)
downloadlibssh-ad1313c2e5cf273aec7bf5415876d389ea8d8ae7.tar.gz
libssh-ad1313c2e5cf273aec7bf5415876d389ea8d8ae7.tar.xz
libssh-ad1313c2e5cf273aec7bf5415876d389ea8d8ae7.zip
Revert "direct-tcpip and forwarded-tcpip callbacks"
This reverts commit efe785e711e1fe8c66dc120b741d1e560ef556db. We need a Signed-off version. I didn't have the Certificate of Origin yet.
Diffstat (limited to 'src')
-rw-r--r--src/messages.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/messages.c b/src/messages.c
index c051c08a..e7bf39f0 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -162,38 +162,6 @@ static int ssh_execute_server_request(ssh_session session, ssh_message msg)
return SSH_OK;
}
- else if (msg->channel_request_open.type == SSH_CHANNEL_DIRECT_TCPIP &&
- ssh_callbacks_exists(session->server_callbacks, channel_open_request_direct_tcpip_function)) {
- channel = session->server_callbacks->channel_open_request_direct_tcpip_function(session,
- msg->channel_request_open.destination,
- msg->channel_request_open.destination_port,
- msg->channel_request_open.originator,
- msg->channel_request_open.originator_port,
- session->server_callbacks->userdata);
- if (channel != NULL) {
- rc = ssh_message_channel_request_open_reply_accept_channel(msg, channel);
- return SSH_OK;
- } else {
- ssh_message_reply_default(msg);
- }
- return SSH_OK;
- }
- else if (msg->channel_request_open.type == SSH_CHANNEL_FORWARDED_TCPIP &&
- ssh_callbacks_exists(session->server_callbacks, channel_open_request_forwarded_tcpip_function)) {
- channel = session->server_callbacks->channel_open_request_forwarded_tcpip_function(session,
- msg->channel_request_open.destination,
- msg->channel_request_open.destination_port,
- msg->channel_request_open.originator,
- msg->channel_request_open.originator_port,
- session->server_callbacks->userdata);
- if (channel != NULL) {
- rc = ssh_message_channel_request_open_reply_accept_channel(msg, channel);
- return SSH_OK;
- } else {
- ssh_message_reply_default(msg);
- }
- return SSH_OK;
- }
break;
case SSH_REQUEST_CHANNEL:
channel = msg->channel_request.channel;