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

c05f5d
diff -up openssl-1.0.2o/ssl/ssltest.c.use-localhost openssl-1.0.2o/ssl/ssltest.c
c05f5d
--- openssl-1.0.2o/ssl/ssltest.c.use-localhost	2018-04-05 16:09:54.338118770 +0200
c05f5d
+++ openssl-1.0.2o/ssl/ssltest.c	2018-04-05 16:11:36.201476198 +0200
c05f5d
@@ -1859,16 +1859,7 @@ int main(int argc, char *argv[])
c05f5d
 
c05f5d
 #ifndef OPENSSL_NO_KRB5
c05f5d
     if (c_ssl && c_ssl->kssl_ctx) {
c05f5d
-        char localhost[MAXHOSTNAMELEN + 2];
c05f5d
-
c05f5d
-        if (gethostname(localhost, sizeof(localhost) - 1) == 0) {
c05f5d
-            localhost[sizeof(localhost) - 1] = '\0';
c05f5d
-            if (strlen(localhost) == sizeof(localhost) - 1) {
c05f5d
-                BIO_printf(bio_err, "localhost name too long\n");
c05f5d
-                goto end;
c05f5d
-            }
c05f5d
-            kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, localhost);
c05f5d
-        }
c05f5d
+        kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER, "localhost");
c05f5d
     }
c05f5d
 #endif                          /* OPENSSL_NO_KRB5 */
c05f5d