ssl-proxy.h revision c25356d5978632df6203437e1953bcb29e0c736f
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* establish SSL connection with the given fd, returns a new fd which you
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen must use from now on, or -1 if error occurred. Unless -1 is returned,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen the given fd must be simply forgotten. */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenint ssl_proxy_new(int fd, struct ip_addr *ip, struct ssl_proxy **proxy_r);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenbool ssl_proxy_has_valid_client_cert(struct ssl_proxy *proxy);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenconst char *ssl_proxy_get_peer_name(struct ssl_proxy *proxy);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenbool ssl_proxy_is_handshaked(struct ssl_proxy *proxy);
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen/* Return number of active SSL proxies */
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainenunsigned int ssl_proxy_get_count(void);