Mercurial > dovecot > core-2.2
view src/login-common/ssl-proxy.h @ 7374:0bb3fc72a74f HEAD
If TLS connection closes with anything except a clean disconnection, log the
reason in the normal disconnected line.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 08 Mar 2008 02:09:40 +0200 |
parents | e4eb71ae8e96 |
children | 81806d402514 |
line wrap: on
line source
#ifndef SSL_PROXY_H #define SSL_PROXY_H struct ip_addr; struct ssl_proxy; extern bool ssl_initialized; /* establish SSL connection with the given fd, returns a new fd which you must use from now on, or -1 if error occurred. Unless -1 is returned, the given fd must be simply forgotten. */ int ssl_proxy_new(int fd, struct ip_addr *ip, struct ssl_proxy **proxy_r); bool ssl_proxy_has_valid_client_cert(struct ssl_proxy *proxy); const char *ssl_proxy_get_peer_name(struct ssl_proxy *proxy); bool ssl_proxy_is_handshaked(struct ssl_proxy *proxy); const char *ssl_proxy_get_last_error(struct ssl_proxy *proxy); void ssl_proxy_free(struct ssl_proxy *proxy); /* Return number of active SSL proxies */ unsigned int ssl_proxy_get_count(void); void ssl_proxy_init(void); void ssl_proxy_deinit(void); #endif