Mercurial > dovecot > core-2.2
comparison src/login-common/ssl-proxy.h @ 2027:dc5d0da1abe9 HEAD
Added ssl_require_client_cert auth-specific setting. Hide
ssl_verify_client_cert from default config file as it's automatically set if
needed and there's not much point in forcing it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 17 May 2004 04:32:16 +0300 |
parents | 2660b47fd9bc |
children | e2fe8222449d |
comparison
equal
deleted
inserted
replaced
2026:53585aa87f9c | 2027:dc5d0da1abe9 |
---|---|
1 #ifndef __SSL_PROXY_H | 1 #ifndef __SSL_PROXY_H |
2 #define __SSL_PROXY_H | 2 #define __SSL_PROXY_H |
3 | 3 |
4 struct ip_addr; | 4 struct ip_addr; |
5 struct ssl_proxy; | |
5 | 6 |
6 extern int ssl_initialized; | 7 extern int ssl_initialized; |
7 | 8 |
8 /* establish SSL connection with the given fd, returns a new fd which you | 9 /* establish SSL connection with the given fd, returns a new fd which you |
9 must use from now on, or -1 if error occured. Unless -1 is returned, | 10 must use from now on, or -1 if error occured. Unless -1 is returned, |
10 the given fd must be simply forgotten. */ | 11 the given fd must be simply forgotten. */ |
11 int ssl_proxy_new(int fd, struct ip_addr *ip); | 12 int ssl_proxy_new(int fd, struct ip_addr *ip, struct ssl_proxy **proxy_r); |
13 int ssl_proxy_has_valid_client_cert(struct ssl_proxy *proxy); | |
14 void ssl_proxy_free(struct ssl_proxy *proxy); | |
12 | 15 |
13 void ssl_proxy_init(void); | 16 void ssl_proxy_init(void); |
14 void ssl_proxy_deinit(void); | 17 void ssl_proxy_deinit(void); |
15 | 18 |
16 #endif | 19 #endif |