b7eb6f
diff -up openssl-1.0.1c/apps/s_server.c.dh1024 openssl-1.0.1c/apps/s_server.c
b7eb6f
--- openssl-1.0.1c/apps/s_server.c.dh1024	2012-11-14 20:27:50.000000000 +0100
b7eb6f
+++ openssl-1.0.1c/apps/s_server.c	2012-11-15 20:56:15.247774465 +0100
b7eb6f
@@ -222,27 +222,31 @@ static void s_server_init(void);
b7eb6f
 #endif
b7eb6f
 
b7eb6f
 #ifndef OPENSSL_NO_DH
b7eb6f
-static unsigned char dh512_p[]={
b7eb6f
-	0xDA,0x58,0x3C,0x16,0xD9,0x85,0x22,0x89,0xD0,0xE4,0xAF,0x75,
b7eb6f
-	0x6F,0x4C,0xCA,0x92,0xDD,0x4B,0xE5,0x33,0xB8,0x04,0xFB,0x0F,
b7eb6f
-	0xED,0x94,0xEF,0x9C,0x8A,0x44,0x03,0xED,0x57,0x46,0x50,0xD3,
b7eb6f
-	0x69,0x99,0xDB,0x29,0xD7,0x76,0x27,0x6B,0xA2,0xD3,0xD4,0x12,
b7eb6f
-	0xE2,0x18,0xF4,0xDD,0x1E,0x08,0x4C,0xF6,0xD8,0x00,0x3E,0x7C,
b7eb6f
-	0x47,0x74,0xE8,0x33,
b7eb6f
-	};
b7eb6f
-static unsigned char dh512_g[]={
b7eb6f
-	0x02,
b7eb6f
-	};
b7eb6f
-
b7eb6f
-static DH *get_dh512(void)
b7eb6f
+static DH *get_dh1024()
b7eb6f
 	{
b7eb6f
-	DH *dh=NULL;
b7eb6f
+	static unsigned char dh1024_p[]={
b7eb6f
+		0x99,0x58,0xFA,0x90,0x53,0x2F,0xE0,0x61,0x83,0x9D,0x54,0x63,
b7eb6f
+		0xBD,0x35,0x5A,0x31,0xF3,0xC6,0x79,0xE5,0xA0,0x0F,0x66,0x79,
b7eb6f
+		0x3C,0xA0,0x7F,0xE8,0xA2,0x5F,0xDF,0x11,0x08,0xA3,0xF0,0x3C,
b7eb6f
+		0xC3,0x3C,0x5D,0x50,0x2C,0xD5,0xD6,0x58,0x12,0xDB,0xC1,0xEF,
b7eb6f
+		0xB4,0x47,0x4A,0x5A,0x39,0x8A,0x4E,0xEB,0x44,0xE2,0x07,0xFB,
b7eb6f
+		0x3D,0xA3,0xC7,0x6E,0x52,0xF3,0x2B,0x7B,0x10,0xA5,0x98,0xE3,
b7eb6f
+		0x38,0x2A,0xE2,0x7F,0xA4,0x8F,0x26,0x87,0x9B,0x66,0x7A,0xED,
b7eb6f
+		0x2D,0x4C,0xE7,0x33,0x77,0x47,0x94,0x43,0xB6,0xAA,0x97,0x23,
b7eb6f
+		0x8A,0xFC,0xA5,0xA6,0x64,0x09,0xC0,0x27,0xC0,0xEF,0xCB,0x05,
b7eb6f
+		0x90,0x9D,0xD5,0x75,0xBA,0x00,0xE0,0xFB,0xA8,0x81,0x52,0xA4,
b7eb6f
+		0xB2,0x83,0x22,0x5B,0xCB,0xD7,0x16,0x93,
b7eb6f
+		};
b7eb6f
+	static unsigned char dh1024_g[]={
b7eb6f
+		0x02,
b7eb6f
+		};
b7eb6f
+	DH *dh;
b7eb6f
 
b7eb6f
 	if ((dh=DH_new()) == NULL) return(NULL);
b7eb6f
-	dh->p=BN_bin2bn(dh512_p,sizeof(dh512_p),NULL);
b7eb6f
-	dh->g=BN_bin2bn(dh512_g,sizeof(dh512_g),NULL);
b7eb6f
+	dh->p=BN_bin2bn(dh1024_p,sizeof(dh1024_p),NULL);
b7eb6f
+	dh->g=BN_bin2bn(dh1024_g,sizeof(dh1024_g),NULL);
b7eb6f
 	if ((dh->p == NULL) || (dh->g == NULL))
b7eb6f
-		return(NULL);
b7eb6f
+		{ DH_free(dh); return(NULL); }
b7eb6f
 	return(dh);
b7eb6f
 	}
b7eb6f
 #endif
b7eb6f
@@ -1657,7 +1661,7 @@ bad:
b7eb6f
 		else
b7eb6f
 			{
b7eb6f
 			BIO_printf(bio_s_out,"Using default temp DH parameters\n");
b7eb6f
-			dh=get_dh512();
b7eb6f
+			dh=get_dh1024();
b7eb6f
 			}
b7eb6f
 		(void)BIO_flush(bio_s_out);
b7eb6f