ssl-proxy.h revision 6ef7e31619edfaa17ed044b45861d106a86191ef
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch/* establish SSL connection with the given fd, returns a new fd which you
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch must use from now on, or -1 if error occurred. Unless -1 is returned,
7384b4e78eaab44693c985192276e31322155e32Stephan Bosch the given fd must be simply forgotten. */
7384b4e78eaab44693c985192276e31322155e32Stephan Boschint ssl_proxy_new(int fd, struct ip_addr *ip, struct ssl_proxy **proxy_r);
7384b4e78eaab44693c985192276e31322155e32Stephan Boschbool ssl_proxy_has_valid_client_cert(struct ssl_proxy *proxy);
7384b4e78eaab44693c985192276e31322155e32Stephan Boschconst char *ssl_proxy_get_peer_name(struct ssl_proxy *proxy);