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