aa64c417f5
- CVE-2007-3108 - fix side channel attack on private keys (#250577) - make ssl session cache id matching strict (#233599)
25 lines
836 B
Diff
25 lines
836 B
Diff
diff -up openssl-0.9.8b/ssl/ssltest.c.use-localhost openssl-0.9.8b/ssl/ssltest.c
|
|
--- openssl-0.9.8b/ssl/ssltest.c.use-localhost 2006-02-24 18:58:35.000000000 +0100
|
|
+++ openssl-0.9.8b/ssl/ssltest.c 2007-08-03 14:06:16.000000000 +0200
|
|
@@ -839,19 +839,8 @@ bad:
|
|
#ifndef OPENSSL_NO_KRB5
|
|
if (c_ssl && c_ssl->kssl_ctx)
|
|
{
|
|
- char localhost[MAXHOSTNAMELEN+2];
|
|
-
|
|
- if (gethostname(localhost, sizeof localhost-1) == 0)
|
|
- {
|
|
- localhost[sizeof localhost-1]='\0';
|
|
- if(strlen(localhost) == sizeof localhost-1)
|
|
- {
|
|
- BIO_printf(bio_err,"localhost name too long\n");
|
|
- goto end;
|
|
- }
|
|
kssl_ctx_setstring(c_ssl->kssl_ctx, KSSL_SERVER,
|
|
- localhost);
|
|
- }
|
|
+ "localhost");
|
|
}
|
|
#endif /* OPENSSL_NO_KRB5 */
|
|
|