Mercurial > dovecot > core-2.2
diff src/login-common/ssl-proxy.h @ 7912:81806d402514 HEAD
Added more consts, ATTR_CONSTs and ATTR_PUREs.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 20 Jun 2008 10:41:44 +0300 |
parents | 0bb3fc72a74f |
children | 3917bf9cf311 |
line wrap: on
line diff
--- a/src/login-common/ssl-proxy.h Fri Jun 20 10:41:27 2008 +0300 +++ b/src/login-common/ssl-proxy.h Fri Jun 20 10:41:44 2008 +0300 @@ -10,14 +10,14 @@ 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); +bool ssl_proxy_has_valid_client_cert(const struct ssl_proxy *proxy) ATTR_PURE; 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); +bool ssl_proxy_is_handshaked(const struct ssl_proxy *proxy) ATTR_PURE; +const char *ssl_proxy_get_last_error(const struct ssl_proxy *proxy) ATTR_PURE; void ssl_proxy_free(struct ssl_proxy *proxy); /* Return number of active SSL proxies */ -unsigned int ssl_proxy_get_count(void); +unsigned int ssl_proxy_get_count(void) ATTR_PURE; void ssl_proxy_init(void); void ssl_proxy_deinit(void);