Blame SOURCES/openssl-0.9.8b-test-use-localhost.patch

a5ef24
diff -up openssl-0.9.8b/ssl/ssltest.c.use-localhost openssl-0.9.8b/ssl/ssltest.c
a5ef24
--- openssl-0.9.8b/ssl/ssltest.c.use-localhost	2006-02-24 18:58:35.000000000 +0100
a5ef24
+++ openssl-0.9.8b/ssl/ssltest.c	2007-08-03 14:06:16.000000000 +0200
a5ef24
@@ -839,19 +839,8 @@ bad:
a5ef24
 #ifndef OPENSSL_NO_KRB5
a5ef24
 	if (c_ssl  &&  c_ssl->kssl_ctx)
a5ef24
                 {
a5ef24
-                char	localhost[MAXHOSTNAMELEN+2];
a5ef24
-
a5ef24
-		if (gethostname(localhost, sizeof localhost-1) == 0)
a5ef24
-                        {
a5ef24
-			localhost[sizeof localhost-1]='\0';
a5ef24
-			if(strlen(localhost) == sizeof localhost-1)
a5ef24
-				{
a5ef24
-				BIO_printf(bio_err,"localhost name too long\n");
a5ef24
-				goto end;
a5ef24
-				}
a5ef24
 			kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER,
a5ef24
-                                localhost);
a5ef24
-			}
a5ef24
+                                "localhost");
a5ef24
 		}
a5ef24
 #endif    /* OPENSSL_NO_KRB5  */
a5ef24