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

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