diff src/login-common/ssl-proxy.h @ 9283:02721ba17309 HEAD

login processes: Added initial support for per-connection configuration.
author Timo Sirainen <tss@iki.fi>
date Thu, 14 May 2009 19:01:28 -0400
parents 96678e83eab6
children e30495ae11de
line wrap: on
line diff
--- a/src/login-common/ssl-proxy.h	Thu May 14 18:52:54 2009 -0400
+++ b/src/login-common/ssl-proxy.h	Thu May 14 19:01:28 2009 -0400
@@ -5,6 +5,7 @@
 
 struct ip_addr;
 struct ssl_proxy;
+struct login_settings;
 
 extern bool ssl_initialized;
 
@@ -13,8 +14,10 @@
 /* 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, const struct ip_addr *ip, struct ssl_proxy **proxy_r);
+int ssl_proxy_new(int fd, const struct ip_addr *ip,
+		  const struct login_settings *set, struct ssl_proxy **proxy_r);
 int ssl_proxy_client_new(int fd, struct ip_addr *ip,
+			 const struct login_settings *set,
 			 ssl_handshake_callback_t *callback, void *context,
 			 struct ssl_proxy **proxy_r);
 bool ssl_proxy_has_valid_client_cert(const struct ssl_proxy *proxy) ATTR_PURE;