ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/ircd.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/ircd.c (file contents):
Revision 3929 by michael, Mon Jun 9 14:56:25 2014 UTC vs.
Revision 4070 by michael, Thu Jun 26 15:36:08 2014 UTC

# Line 406 | Line 406 | ssl_init(void)
406                       always_accept_verify_cb);
407    SSL_CTX_set_session_id_context(ServerInfo.server_ctx, session_id, sizeof(session_id) - 1);
408  
409 + #if OPENSSL_VERSION_NUMBER >= 0x1000005FL && !defined(OPENSSL_NO_ECDH)
410 +  {
411 +    EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
412 +
413 +    if (key)
414 +    {
415 +      SSL_CTX_set_tmp_ecdh(ServerInfo.server_ctx, key);
416 +      EC_KEY_free(key);
417 +    }
418 +  }
419 +
420 +  SSL_CTX_set_options(ServerInfo.server_ctx, SSL_OP_SINGLE_ECDH_USE);
421 + #endif
422 +
423    if ((ServerInfo.client_ctx = SSL_CTX_new(SSLv23_client_method())) == NULL)
424    {
425      const char *s;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)