mturk / rpms / openssl

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