aboutsummaryrefslogtreecommitdiff
path: root/src/proxy.h
blob: 0e42bdcf7c78211d574c6c0c749ca2d48f78f828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef PROXY_H_
#define PROXY_H_

#include <libssh/libssh.h>

#include "session.h"

/* A userdata struct for channel. */
struct proxy_channel_data_struct {
    /* Event which is used to poll */
    ssh_event event;
    ssh_session my_session;
    ssh_channel my_channel;
    ssh_channel client_channel;
};
void handle_proxy_session(ssh_event event, ssh_session session, ssh_channel my_channel);

#endif