[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssl-dev
Subject:    [openssl.org #2051] IPv6 in s_client and s_server for version 1.0.0c
From:       "Eugene Crosser via RT" <rt () openssl ! org>
Date:       2011-01-26 6:19:27
Message-ID: rt-3.4.5-27153-1296022766-876.2051-6-0 () openssl ! org
[Download RAW message or body]

Modified version of Michael Tuexen's patch that applies to 1.0.0c tree.
(Hope that it makes it through email RT interface.)

Eugene


["appsv6-1.0.0c.patch" (text/x-patch)]

--- apps/s_apps.h.orig	2009-09-04 21:42:04.000000000 +0400
+++ apps/s_apps.h	2011-01-25 15:15:05.000000000 +0300
@@ -148,7 +148,7 @@
 #define PORT_STR        "4433"
 #define PROTOCOL        "tcp"
 
-int do_server(int port, int type, int *ret, int (*cb) (char *hostname, int s, \
unsigned char *context), unsigned char *context); +int do_server(int port, int type, \
int *ret, int (*cb) (char *hostname, int s, unsigned char *context), unsigned char \
*context, int use_ipv4, int use_ipv6);  #ifdef HEADER_X509_H
 int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
 #endif
@@ -156,7 +156,7 @@
 int set_cert_stuff(SSL_CTX *ctx, char *cert_file, char *key_file);
 int set_cert_key_stuff(SSL_CTX *ctx, X509 *cert, EVP_PKEY *key);
 #endif
-int init_client(int *sock, char *server, int port, int type);
+int init_client(int *sock, char *server, int port, int type, int use_ipv4, int \
use_ipv6);  int should_retry(int i);
 int extract_port(char *str, short *port_ptr);
 int extract_host_port(char *str,char **host_ptr,unsigned char *ip,short *p);
--- apps/s_server.c.orig	2010-06-15 21:25:02.000000000 +0400
+++ apps/s_server.c	2011-01-25 15:15:05.000000000 +0300
@@ -493,6 +493,10 @@
 	BIO_printf(bio_err," -no_ticket    - disable use of RFC4507bis session tickets\n");
 	BIO_printf(bio_err," -legacy_renegotiation - enable use of legacy renegotiation \
(dangerous)\n");  #endif
+	BIO_printf(bio_err," -4            - use IPv4 only\n");
+#if OPENSSL_USE_IPV6
+	BIO_printf(bio_err," -6            - use IPv6 only\n");
+#endif
 	}
 
 static int local_argc=0;
@@ -852,6 +856,7 @@
 	int state=0;
 	const SSL_METHOD *meth=NULL;
 	int socket_type=SOCK_STREAM;
+	int use_ipv4, use_ipv6;
 	ENGINE *e=NULL;
 	char *inrand=NULL;
 	int s_cert_format = FORMAT_PEM, s_key_format = FORMAT_PEM;
@@ -880,6 +885,12 @@
 	meth=SSLv2_server_method();
 #endif
 
+	use_ipv4 = 1;
+#if OPENSSL_USE_IPV6
+	use_ipv6 = 1;
+#else
+	use_ipv6 = 0;
+#endif
 	local_argc=argc;
 	local_argv=argv;
 
@@ -1200,6 +1211,18 @@
 			jpake_secret = *(++argv);
 			}
 #endif
+		else if (strcmp(*argv,"-4") == 0)
+			{
+			use_ipv4 = 1;
+			use_ipv6 = 0;
+			}
+#if OPENSSL_USE_IPV6
+		else if (strcmp(*argv,"-6") == 0)
+			{
+			use_ipv4 = 0;
+			use_ipv6 = 1;
+			}
+#endif
 		else
 			{
 			BIO_printf(bio_err,"unknown option %s\n",*argv);
@@ -1696,9 +1719,9 @@
 	BIO_printf(bio_s_out,"ACCEPT\n");
 	(void)BIO_flush(bio_s_out);
 	if (www)
-		do_server(port,socket_type,&accept_socket,www_body, context);
+		do_server(port,socket_type,&accept_socket,www_body, context, use_ipv4, use_ipv6);
 	else
-		do_server(port,socket_type,&accept_socket,sv_body, context);
+		do_server(port,socket_type,&accept_socket,sv_body, context, use_ipv4, use_ipv6);
 	print_stats(bio_s_out,ctx);
 	ret=0;
 end:
--- apps/s_client.c.orig	2009-12-16 23:28:28.000000000 +0300
+++ apps/s_client.c	2011-01-25 15:15:05.000000000 +0300
@@ -279,6 +279,9 @@
 	{
 	BIO_printf(bio_err,"usage: s_client args\n");
 	BIO_printf(bio_err,"\n");
+#if OPENSSL_USE_IPV6
+	BIO_printf(bio_err," -6             - use IPv6\n");
+#endif
 	BIO_printf(bio_err," -host host     - use -connect instead\n");
 	BIO_printf(bio_err," -port port     - use -connect instead\n");
 	BIO_printf(bio_err," -connect host:port - who to connect to (default is \
%s:%s)\n",SSL_HOST_NAME,PORT_STR); @@ -390,6 +393,7 @@
 	int sbuf_len,sbuf_off;
 	fd_set readfds,writefds;
 	short port=PORT;
+	int use_ipv4, use_ipv6;
 	int full_log=1;
 	char *host=SSL_HOST_NAME;
 	char *cert_file=NULL,*key_file=NULL;
@@ -432,7 +436,11 @@
 #endif
 	char *sess_in = NULL;
 	char *sess_out = NULL;
-	struct sockaddr peer;
+#if OPENSSL_USE_IPV6
+	struct sockaddr_storage peer;
+#else
+	struct sockaddr_in peer;
+#endif
 	int peerlen = sizeof(peer);
 	int enable_timeouts = 0 ;
 	long socket_mtu = 0;
@@ -448,6 +456,8 @@
 	meth=SSLv2_client_method();
 #endif
 
+	use_ipv4 = 1;
+	use_ipv6 = 0;
 	apps_startup();
 	c_Pause=0;
 	c_quiet=0;
@@ -723,6 +733,13 @@
 			jpake_secret = *++argv;
 			}
 #endif
+#if OPENSSL_USE_IPV6
+		else if (strcmp(*argv,"-6") == 0)
+			{
+			use_ipv4 = 0;
+			use_ipv6 = 1;
+			}
+#endif
 		else
 			{
 			BIO_printf(bio_err,"unknown option %s\n",*argv);
@@ -966,7 +983,7 @@
 
 re_start:
 
-	if (init_client(&s,host,port,socket_type) == 0)
+	if (init_client(&s,host,port,socket_type,use_ipv4,use_ipv6) == 0)
 		{
 		BIO_printf(bio_err,"connect:errno=%d\n",get_last_socket_error());
 		SHUTDOWN(s);
@@ -985,14 +1002,14 @@
 			goto end;
 			}
 		}
-#endif                                              
+#endif
 	if (c_Pause & 0x01) con->debug=1;
 
 	if ( SSL_version(con) == DTLS1_VERSION)
 		{
 
 		sbio=BIO_new_dgram(s,BIO_NOCLOSE);
-		if (getsockname(s, &peer, (void *)&peerlen) < 0)
+		if (getsockname(s, (struct sockaddr *)&peer, (void *)&peerlen) < 0)
 			{
 			BIO_printf(bio_err, "getsockname:errno=%d\n",
 				get_last_socket_error());
--- apps/s_socket.c.orig	2010-07-05 15:03:22.000000000 +0400
+++ apps/s_socket.c	2011-01-25 15:31:05.000000000 +0300
@@ -97,16 +97,16 @@
 #include "netdb.h"
 #endif
 
-static struct hostent *GetHostByName(char *name);
+static struct hostent *GetHostByName(char *name, int domain);
 #if defined(OPENSSL_SYS_WINDOWS) || (defined(OPENSSL_SYS_NETWARE) && \
!defined(NETWARE_BSDSOCK))  static void ssl_sock_cleanup(void);
 #endif
 static int ssl_sock_init(void);
-static int init_client_ip(int *sock,unsigned char ip[4], int port, int type);
-static int init_server(int *sock, int port, int type);
-static int init_server_long(int *sock, int port,char *ip, int type);
+static int init_client_ip(int *sock,unsigned char *ip, int port, int type, int \
domain); +static int init_server(int *sock, int port, int type, int use_ipv4, int \
use_ipv6); +static int init_server_long(int *sock, int port,char *ip, int type, int \
use_ipv4, int use_ipv6);  static int do_accept(int acc_sock, int *sock, char **host);
-static int host_ip(char *str, unsigned char ip[4]);
+static int host_ip(char *str, unsigned char *ip, int domain);
 
 #ifdef OPENSSL_SYS_WIN16
 #define SOCKET_PROTOCOL	0 /* more microsoft stupidity */
@@ -234,39 +234,75 @@
 	return(1);
 	}
 
-int init_client(int *sock, char *host, int port, int type)
+int init_client(int *sock, char *host, int port, int type, int use_ipv4, int \
use_ipv6)  {
+#if OPENSSL_USE_IPV6
+	unsigned char ip[16];
+#else
 	unsigned char ip[4];
+#endif
 
-	if (!host_ip(host,&(ip[0])))
-		{
-		return(0);
-		}
-	return(init_client_ip(sock,ip,port,type));
-	}
-
-static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)
-	{
-	unsigned long addr;
-	struct sockaddr_in them;
+	if (!use_ipv4 && !use_ipv6)
+		return 0;
+#if OPENSSL_USE_IPV6
+	/* we are fine here */
+#else
+	if (use_ipv6)
+		return 0;
+#endif
+	if (use_ipv4)
+		if (host_ip(host,ip,AF_INET))
+			return(init_client_ip(sock,ip,port,type,AF_INET));
+#if OPENSSL_USE_IPV6
+	if (use_ipv6)
+		if (host_ip(host,ip,AF_INET6))
+			return(init_client_ip(sock,ip,port,type,AF_INET6));
+#endif
+	return 0;
+	}
+
+static int init_client_ip(int *sock, unsigned char *ip, int port, int type, int \
domain) +	{
+	union {
+#if OPENSSL_USE_IPV6
+		struct sockaddr_storage ss;
+		struct sockaddr_in6 s6;
+#endif
+		struct sockaddr_in s4;
+	} them;
+	socklen_t addr_len;
 	int s,i;
 
 	if (!ssl_sock_init()) return(0);
 
 	memset((char *)&them,0,sizeof(them));
-	them.sin_family=AF_INET;
-	them.sin_port=htons((unsigned short)port);
-	addr=(unsigned long)
-		((unsigned long)ip[0]<<24L)|
-		((unsigned long)ip[1]<<16L)|
-		((unsigned long)ip[2]<< 8L)|
-		((unsigned long)ip[3]);
-	them.sin_addr.s_addr=htonl(addr);
+	if (domain == AF_INET)
+		{
+		addr_len = (socklen_t)sizeof(struct sockaddr_in);
+		them.s4.sin_family=AF_INET;
+		them.s4.sin_port=htons((unsigned short)port);
+#ifndef BIT_FIELD_LIMITS
+		memcpy(&them.s4.sin_addr.s_addr, ip, 4);
+#else
+		memcpy(&them.s4.sin_addr, ip, 4);
+#endif
+		}
+	else
+#if OPENSSL_USE_IPV6
+		{
+		addr_len = (socklen_t)sizeof(struct sockaddr_in6);
+		them.s6.sin6_family=AF_INET6;
+		them.s6.sin6_port=htons((unsigned short)port);
+		memcpy(&(them.s6.sin6_addr), ip, sizeof(struct in6_addr));
+		}
+#else
+		return(0);
+#endif
 
 	if (type == SOCK_STREAM)
-		s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL);
+		s=socket(domain,SOCK_STREAM,SOCKET_PROTOCOL);
 	else /* ( type == SOCK_DGRAM) */
-		s=socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP);
+		s=socket(domain,SOCK_DGRAM,IPPROTO_UDP);
 			
 	if (s == INVALID_SOCKET) { perror("socket"); return(0); }
 
@@ -278,29 +314,27 @@
 		if (i < 0) { perror("keepalive"); return(0); }
 		}
 #endif
-
-	if (connect(s,(struct sockaddr *)&them,sizeof(them)) == -1)
+	if (connect(s,(struct sockaddr *)&them,addr_len) == -1)
 		{ closesocket(s); perror("connect"); return(0); }
 	*sock=s;
 	return(1);
 	}
 
-int do_server(int port, int type, int *ret, int (*cb)(char *hostname, int s, \
unsigned char *context), unsigned char *context) +int do_server(int port, int type, \
int *ret, int (*cb)(char *hostname, int s, unsigned char *context), unsigned char \
*context, int use_ipv4, int use_ipv6)  {
 	int sock;
 	char *name = NULL;
 	int accept_socket = 0;
 	int i;
 
-	if (!init_server(&accept_socket,port,type)) return(0);
-
+	if (!init_server(&accept_socket,port,type, use_ipv4, use_ipv6)) return(0);
 	if (ret != NULL)
 		{
 		*ret=accept_socket;
 		/* return(1);*/
 		}
-  	for (;;)
-  		{
+	for (;;)
+		{
 		if (type==SOCK_STREAM)
 			{
 			if (do_accept(accept_socket,&sock,&name) == 0)
@@ -323,41 +357,86 @@
 		}
 	}
 
-static int init_server_long(int *sock, int port, char *ip, int type)
+static int init_server_long(int *sock, int port, char *ip, int type, int use_ipv4, \
int use_ipv6)  {
 	int ret=0;
-	struct sockaddr_in server;
+	int domain;
+	union {
+#if OPENSSL_USE_IPV6
+		struct sockaddr_storage ss;
+		struct sockaddr_in6 s6;
+	#endif
+		struct sockaddr_in s4;
+	} server;
+	socklen_t addr_len;
 	int s= -1;
 
+	if (!use_ipv4 && !use_ipv6)
+		goto err;
+#if OPENSSL_USE_IPV6
+	/* we are fine here */
+#else
+	if (use_ipv6)
+		goto err;
+#endif
 	if (!ssl_sock_init()) return(0);
 
-	memset((char *)&server,0,sizeof(server));
-	server.sin_family=AF_INET;
-	server.sin_port=htons((unsigned short)port);
-	if (ip == NULL)
-		server.sin_addr.s_addr=INADDR_ANY;
-	else
-/* Added for T3E, address-of fails on bit field (beckman@acl.lanl.gov) */
-#ifndef BIT_FIELD_LIMITS
-		memcpy(&server.sin_addr.s_addr,ip,4);
+#if OPENSSL_USE_IPV6
+	domain = use_ipv6 ? AF_INET6 : AF_INET;
 #else
-		memcpy(&server.sin_addr,ip,4);
+	domain = AF_INET;
 #endif
-	
-		if (type == SOCK_STREAM)
-			s=socket(AF_INET,SOCK_STREAM,SOCKET_PROTOCOL);
-		else /* type == SOCK_DGRAM */
-			s=socket(AF_INET, SOCK_DGRAM,IPPROTO_UDP);
+	if (type == SOCK_STREAM)
+		s=socket(domain,SOCK_STREAM,SOCKET_PROTOCOL);
+	else /* type == SOCK_DGRAM */
+		s=socket(domain, SOCK_DGRAM,IPPROTO_UDP);
 
 	if (s == INVALID_SOCKET) goto err;
 #if defined SOL_SOCKET && defined SO_REUSEADDR
+	{
+	int j = 1;
+	setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
+		   (void *) &j, sizeof j);
+	}
+#endif
+#if OPENSSL_USE_IPV6
+	if ((use_ipv4 == 0) && (use_ipv6 == 1))
+		{
+		const int on = 1;
+
+		setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY,
+			   (const void *) &on, sizeof(int));
+		}
+#endif
+	memset(&server, 0, sizeof(server));
+	if (domain == AF_INET)
+		{
+		addr_len = (socklen_t)sizeof(struct sockaddr_in);
+		server.s4.sin_family=AF_INET;
+		server.s4.sin_port = htons((unsigned short)port);
+		if (ip == NULL)
+			server.s4.sin_addr.s_addr = htonl(INADDR_ANY);
+		else
+/* Added for T3E, address-of fails on bit field (beckman@acl.lanl.gov) */
+#ifndef BIT_FIELD_LIMITS
+			memcpy(&server.s4.sin_addr.s_addr, ip, 4);
+#else
+			memcpy(&server.s4.sin_addr, ip, 4);
+#endif
+		}
+#if OPENSSL_USE_IPV6
+	else
 		{
-		int j = 1;
-		setsockopt(s, SOL_SOCKET, SO_REUSEADDR,
-			   (void *) &j, sizeof j);
+		addr_len = (socklen_t)sizeof(struct sockaddr_in6);
+		server.s6.sin6_family = AF_INET6;
+		server.s6.sin6_port = htons((unsigned short)port);
+		if (ip == NULL)
+			server.s6.sin6_addr = in6addr_any;
+		else
+			memcpy(&server.s6.sin6_addr, ip, sizeof(struct in6_addr));
 		}
 #endif
-	if (bind(s,(struct sockaddr *)&server,sizeof(server)) == -1)
+	if (bind(s, (struct sockaddr *)&server, addr_len) == -1)
 		{
 #ifndef OPENSSL_SYS_WINDOWS
 		perror("bind");
@@ -376,16 +455,22 @@
 	return(ret);
 	}
 
-static int init_server(int *sock, int port, int type)
+static int init_server(int *sock, int port, int type, int use_ipv4, int use_ipv6)
 	{
-	return(init_server_long(sock, port, NULL, type));
+	return(init_server_long(sock, port, NULL, type, use_ipv4, use_ipv6));
 	}
 
 static int do_accept(int acc_sock, int *sock, char **host)
 	{
 	int ret;
 	struct hostent *h1,*h2;
-	static struct sockaddr_in from;
+	union {
+#if OPENSSL_USE_IPV6
+		struct sockaddr_storage ss;
+		struct sockaddr_in6 s6;
+#endif
+		struct sockaddr_in s4;
+	} from;
 	int len;
 /*	struct linger ling; */
 
@@ -432,13 +517,23 @@
 */
 
 	if (host == NULL) goto end;
+#if OPENSSL_USE_IPV6
+	if (from.ss.ss_family == AF_INET)
+#else
+	if (from.s4.sin_family == AF_INET)
+#endif
 #ifndef BIT_FIELD_LIMITS
-	/* I should use WSAAsyncGetHostByName() under windows */
-	h1=gethostbyaddr((char *)&from.sin_addr.s_addr,
-		sizeof(from.sin_addr.s_addr),AF_INET);
+		/* I should use WSAAsyncGetHostByName() under windows */
+		h1=gethostbyaddr((char *)&from.s4.sin_addr.s_addr,
+		                 sizeof(from.s4.sin_addr.s_addr), AF_INET);
 #else
-	h1=gethostbyaddr((char *)&from.sin_addr,
-		sizeof(struct in_addr),AF_INET);
+		h1=gethostbyaddr((char *)&from.s4.sin_addr,
+		                 sizeof(struct in_addr), AF_INET);
+#endif
+#if OPENSSL_USE_IPV6
+	else
+		h1=gethostbyaddr((char *)&from.s6.sin6_addr,
+		                 sizeof(struct in6_addr), AF_INET6);
 #endif
 	if (h1 == NULL)
 		{
@@ -455,15 +550,23 @@
 			}
 		BUF_strlcpy(*host,h1->h_name,strlen(h1->h_name)+1);
 
-		h2=GetHostByName(*host);
+#if OPENSSL_USE_IPV6
+		h2=GetHostByName(*host, from.ss.ss_family);
+#else
+		h2=GetHostByName(*host, from.s4.sin_family);
+#endif
 		if (h2 == NULL)
 			{
 			BIO_printf(bio_err,"gethostbyname failure\n");
 			return(0);
 			}
-		if (h2->h_addrtype != AF_INET)
+#if OPENSSL_USE_IPV6
+		if (h2->h_addrtype != from.ss.ss_family)
+#else
+		if (h2->h_addrtype != from.s4.sin_family)
+#endif
 			{
-			BIO_printf(bio_err,"gethostbyname addr is not AF_INET\n");
+			BIO_printf(bio_err,"gethostbyname addr address is not correct\n");
 			return(0);
 			}
 		}
@@ -478,7 +581,7 @@
 	char *h,*p;
 
 	h=str;
-	p=strchr(str,':');
+	p=strrchr(str,':');
 	if (p == NULL)
 		{
 		BIO_printf(bio_err,"no port defined\n");
@@ -486,7 +589,7 @@
 		}
 	*(p++)='\0';
 
-	if ((ip != NULL) && !host_ip(str,ip))
+	if ((ip != NULL) && !host_ip(str,ip,AF_INET))
 		goto err;
 	if (host_ptr != NULL) *host_ptr=h;
 
@@ -497,48 +600,58 @@
 	return(0);
 	}
 
-static int host_ip(char *str, unsigned char ip[4])
+static int host_ip(char *str, unsigned char *ip, int domain)
 	{
-	unsigned int in[4]; 
+	unsigned int in[4];
+	unsigned long l;
 	int i;
 
-	if (sscanf(str,"%u.%u.%u.%u",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4)
+	if ((domain == AF_INET) &&
+	    (sscanf(str,"%u.%u.%u.%u",&(in[0]),&(in[1]),&(in[2]),&(in[3])) == 4))
 		{
+		
 		for (i=0; i<4; i++)
 			if (in[i] > 255)
 				{
 				BIO_printf(bio_err,"invalid IP address\n");
 				goto err;
 				}
-		ip[0]=in[0];
-		ip[1]=in[1];
-		ip[2]=in[2];
-		ip[3]=in[3];
-		}
+		l=htonl((in[0]<<24L)|(in[1]<<16L)|(in[2]<<8L)|in[3]);
+		memcpy(ip, &l, 4);
+		return 1;
+		}
+#if OPENSSL_USE_IPV6
+	else if ((domain == AF_INET6) &&
+	         (inet_pton(AF_INET6, str, ip) == 1))
+	         return 1;
+#endif
 	else
 		{ /* do a gethostbyname */
 		struct hostent *he;
 
 		if (!ssl_sock_init()) return(0);
 
-		he=GetHostByName(str);
+		he=GetHostByName(str,domain);
 		if (he == NULL)
 			{
 			BIO_printf(bio_err,"gethostbyname failure\n");
 			goto err;
 			}
 		/* cast to short because of win16 winsock definition */
-		if ((short)he->h_addrtype != AF_INET)
+		if ((short)he->h_addrtype != domain)
 			{
-			BIO_printf(bio_err,"gethostbyname addr is not AF_INET\n");
+			BIO_printf(bio_err,"gethostbyname addr family is not correct\n");
 			return(0);
 			}
-		ip[0]=he->h_addr_list[0][0];
-		ip[1]=he->h_addr_list[0][1];
-		ip[2]=he->h_addr_list[0][2];
-		ip[3]=he->h_addr_list[0][3];
+		if (domain == AF_INET)
+			memset(ip, 0, 4);
+#if OPENSSL_USE_IPV6
+		else
+			memset(ip, 0, 16);
+#endif
+		memcpy(ip, he->h_addr_list[0], he->h_length);
+		return 1;
 		}
-	return(1);
 err:
 	return(0);
 	}
@@ -575,9 +688,9 @@
 static unsigned long ghbn_hits=0L;
 static unsigned long ghbn_miss=0L;
 
-static struct hostent *GetHostByName(char *name)
+static struct hostent *GetHostByName(char *name, int domain)
 	{
-	struct hostent *ret;
+	struct hostent *ret = NULL;
 	int i,lowi=0;
 	unsigned long low= (unsigned long)-1;
 
@@ -590,14 +703,20 @@
 			}
 		if (ghbn_cache[i].order > 0)
 			{
-			if (strncmp(name,ghbn_cache[i].name,128) == 0)
+			if ((strncmp(name,ghbn_cache[i].name,128) == 0) &&
+			    (ghbn_cache[i].ent.h_addrtype == domain))
 				break;
 			}
 		}
 	if (i == GHBN_NUM) /* no hit*/
 		{
 		ghbn_miss++;
-		ret=gethostbyname(name);
+		if (domain == AF_INET)
+			ret=gethostbyname(name);
+#if OPENSSL_USE_IPV6
+		else
+			ret=gethostbyname2(name, AF_INET6);
+#endif
 		if (ret == NULL) return(NULL);
 		/* else add to cache */
 		if(strlen(name) < sizeof ghbn_cache[0].name)


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majordomo@openssl.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic