#include <tls_tunnel.h>
Public Member Functions | |
ServerProxy (const std::string &bind_ip, unsigned short bind_port, unsigned short local_port, const std::string &ca_file, const std::string &cert_file, const std::string &key_file) | |
virtual void | setup () |
Private Member Functions | |
void | on_transport_connect (transport_ptr_t transport_ptr, socket_ptr_t remote_socket_ptr) |
session_ptr_t | setup_tls_session (socket_ptr_t remote_socket_ptr) |
Private Attributes | |
std::string | bind_ip_ |
unsigned short | bind_port_ |
unsigned short | local_port_ |
gnutls_dh_params_t | dh_params |
tls_tunnel::ServerProxy::ServerProxy | ( | const std::string & | bind_ip, | |
unsigned short | bind_port, | |||
unsigned short | local_port, | |||
const std::string & | ca_file, | |||
const std::string & | cert_file, | |||
const std::string & | key_file | |||
) |
References dh_params, TLS_SETUP_ERROR, and tls_tunnel::Proxy::x509cred.
void tls_tunnel::ServerProxy::on_transport_connect | ( | transport_ptr_t | transport_ptr, | |
socket_ptr_t | remote_socket_ptr | |||
) | [private] |
References tls_tunnel::Proxy::disconnect_(), local_port_, setup_tls_session(), and tls_tunnel::Proxy::tunnel().
Referenced by setup().
void tls_tunnel::ServerProxy::setup | ( | ) | [virtual] |
Implements tls_tunnel::Proxy.
References bind_ip_, bind_port_, on_transport_connect(), and tls_tunnel::Proxy::transport_ptr_.
session_ptr_t tls_tunnel::ServerProxy::setup_tls_session | ( | socket_ptr_t | remote_socket_ptr | ) | [private] |
References tls_tunnel::read(), return_val_if_neg, tls_tunnel::write(), and tls_tunnel::Proxy::x509cred.
Referenced by on_transport_connect().
std::string tls_tunnel::ServerProxy::bind_ip_ [private] |
Referenced by setup().
unsigned short tls_tunnel::ServerProxy::bind_port_ [private] |
Referenced by setup().
gnutls_dh_params_t tls_tunnel::ServerProxy::dh_params [private] |
Referenced by ServerProxy().
unsigned short tls_tunnel::ServerProxy::local_port_ [private] |
Referenced by on_transport_connect().