Blame SOURCES/openssl-1.0.2a-test-use-localhost.patch

7779df
diff -up openssl-1.0.2a/ssl/ssltest.c.use-localhost openssl-1.0.2a/ssl/ssltest.c
7779df
--- openssl-1.0.2a/ssl/ssltest.c.use-localhost	2015-04-20 14:43:07.172601663 +0200
7779df
+++ openssl-1.0.2a/ssl/ssltest.c	2015-04-20 14:45:02.831299849 +0200
7779df
@@ -1516,16 +1516,7 @@ int main(int argc, char *argv[])
7779df
 
7779df
 #ifndef OPENSSL_NO_KRB5
7779df
     if (c_ssl && c_ssl->kssl_ctx) {
7779df
-        char localhost[MAXHOSTNAMELEN + 2];
7779df
-
7779df
-        if (gethostname(localhost, sizeof localhost - 1) == 0) {
7779df
-            localhost[sizeof localhost - 1] = '\0';
7779df
-            if (strlen(localhost) == sizeof localhost - 1) {
7779df
-                BIO_printf(bio_err, "localhost name too long\n");
7779df
-                goto end;
7779df
-            }
7779df
-            kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, localhost);
7779df
-        }
7779df
+        kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, "localhost");
7779df
     }
7779df
 #endif                          /* OPENSSL_NO_KRB5 */
7779df