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

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