diff src/login-common/login-proxy.h @ 14518:773ca397d799

SSL proxying: Remote's host never matched cert, because auth process changed it to IP. Now the "host" parameter isn't changed, but a new optional "hostip" parameter contains the IP address where to connect to.
author Timo Sirainen <tss@iki.fi>
date Wed, 25 Apr 2012 21:32:00 +0300
parents c872378a8de6
children fbb1ecb9b888
line wrap: on
line diff
--- a/src/login-common/login-proxy.h	Wed Apr 25 21:29:14 2012 +0300
+++ b/src/login-common/login-proxy.h	Wed Apr 25 21:32:00 2012 +0300
@@ -1,6 +1,8 @@
 #ifndef LOGIN_PROXY_H
 #define LOGIN_PROXY_H
 
+#include "network.h"
+
 struct client;
 struct login_proxy;
 
@@ -15,6 +17,7 @@
 
 struct login_proxy_settings {
 	const char *host;
+	struct ip_addr ip;
 	const char *dns_client_socket_path;
 	unsigned int port;
 	unsigned int connect_timeout_msecs;