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

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