| 260 | | /* unsigned char dh1024_p[] = { |
|---|
| 261 | | 0xBC,0xBB,0x2B,0x4F,0x58,0x58,0x9C,0x4D,0x46,0x0D,0xBB,0x9E, |
|---|
| 262 | | 0x4D,0x85,0x69,0x56,0x43,0x5E,0xFB,0xC8,0xF6,0xC0,0xAC,0x8E, |
|---|
| 263 | | 0xCB,0xF6,0x0B,0x38,0x8F,0x25,0xD6,0x7A,0xA1,0x26,0xC4,0x74, |
|---|
| 264 | | 0x74,0x98,0x96,0x3F,0x96,0x90,0x3B,0x00,0x6E,0xE3,0x0A,0x61, |
|---|
| 265 | | 0xA9,0xA2,0x62,0x49,0xDA,0x7D,0xE0,0x6B,0x8F,0xA7,0x89,0x7F, |
|---|
| 266 | | 0x41,0x09,0x09,0xA3,0xA2,0x5F,0x2C,0xD3,0x77,0x26,0x8D,0x81, |
|---|
| 267 | | 0x33,0x04,0xEF,0x40,0x75,0xB2,0xCF,0xBA,0xEF,0xD5,0x08,0xF4, |
|---|
| 268 | | 0x9E,0x30,0xD2,0x57,0x12,0xD6,0xEA,0x86,0xCA,0x10,0x7B,0x4B, |
|---|
| 269 | | 0x93,0x42,0x7E,0x79,0x42,0x36,0x5D,0x2B,0x23,0xDB,0x7E,0xAB, |
|---|
| 270 | | 0xDB,0xFD,0x1B,0xDA,0x86,0x49,0x15,0x92,0x41,0x56,0xDD,0x68, |
|---|
| 271 | | 0x2C,0x7F,0xAA,0x34,0x56,0x80,0xA5,0x8B }; |
|---|
| 272 | | unsigned char dh1024_g[] = { 0x02 }; |
|---|
| 273 | | |
|---|
| 274 | | wd_control_socket_context = wi_socket_context_init(wi_socket_context_alloc()); |
|---|
| 275 | | wd_transfer_socket_context = wi_socket_context_init(wi_socket_context_alloc()); |
|---|
| 276 | | |
|---|
| 277 | | if(!wi_socket_context_set_ssl_type(wd_control_socket_context, WI_SOCKET_SSL_SERVER) || |
|---|
| 278 | | !wi_socket_context_set_ssl_type(wd_transfer_socket_context, WI_SOCKET_SSL_SERVER)) |
|---|
| 279 | | wi_log_err(WI_STR("Could not set SSL context: %m")); |
|---|
| 280 | | |
|---|
| 281 | | if(!wi_socket_context_set_ssl_dh(wd_control_socket_context, dh1024_p, sizeof(dh1024_p), dh1024_g, sizeof(dh1024_g)) || |
|---|
| 282 | | !wi_socket_context_set_ssl_dh(wd_transfer_socket_context, dh1024_p, sizeof(dh1024_p), dh1024_g, sizeof(dh1024_g))) |
|---|
| 283 | | wi_log_err(WI_STR("Could not set anonymous DH key: %m"));*/ |
|---|
| 284 | | |
|---|
| 285 | | wd_p7_rsa = wi_p7_rsa_init_with_private_pem_file(wi_p7_rsa_alloc(), WI_STR("key")); |
|---|
| | 260 | wd_p7_rsa = wi_p7_rsa_init_with_size(wi_p7_rsa_alloc(), 1024); |
|---|