comparison src/login-common/ssl-proxy.h @ 3863:55df57c028d4 HEAD

Added "bool" type and changed all ints that were used as booleans to bool.
author Timo Sirainen <tss@iki.fi>
date Fri, 13 Jan 2006 22:25:57 +0200
parents c12df370e1b2
children 9d9e72374164
comparison
equal deleted inserted replaced
3862:ea1571f17b96 3863:55df57c028d4
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 struct ssl_proxy;
6 6
7 extern int ssl_initialized; 7 extern bool ssl_initialized;
8 8
9 /* 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
10 must use from now on, or -1 if error occurred. Unless -1 is returned, 10 must use from now on, or -1 if error occurred. Unless -1 is returned,
11 the given fd must be simply forgotten. */ 11 the given fd must be simply forgotten. */
12 int ssl_proxy_new(int fd, struct ip_addr *ip, struct ssl_proxy **proxy_r); 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); 13 bool ssl_proxy_has_valid_client_cert(struct ssl_proxy *proxy);
14 const char *ssl_proxy_get_peer_name(struct ssl_proxy *proxy); 14 const char *ssl_proxy_get_peer_name(struct ssl_proxy *proxy);
15 void ssl_proxy_free(struct ssl_proxy *proxy); 15 void ssl_proxy_free(struct ssl_proxy *proxy);
16 16
17 void ssl_proxy_init(void); 17 void ssl_proxy_init(void);
18 void ssl_proxy_deinit(void); 18 void ssl_proxy_deinit(void);