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

Comparing ircd-hybrid/trunk/src/conf.c (file contents):
Revision 4460 by michael, Mon Aug 11 19:45:11 2014 UTC vs.
Revision 4496 by michael, Sat Aug 16 18:13:37 2014 UTC

# Line 805 | Line 805 | set_default_conf(void)
805    assert(class_default == class_get_list()->tail->data);
806  
807   #ifdef HAVE_LIBCRYPTO
808 + #if OPENSSL_VERSION_NUMBER >= 0x1000005FL && !defined(OPENSSL_NO_ECDH)
809 +  {
810 +    EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
811 +
812 +    if (key)
813 +    {
814 +      SSL_CTX_set_tmp_ecdh(ConfigServerInfo.server_ctx, key);
815 +      EC_KEY_free(key);
816 +    }
817 +  }
818 +
819 +  SSL_CTX_set_options(ConfigServerInfo.server_ctx, SSL_OP_SINGLE_ECDH_USE);
820 + #endif
821 +
822    ConfigServerInfo.message_digest_algorithm = EVP_sha256();
823    ConfigServerInfo.rsa_private_key = NULL;
824    ConfigServerInfo.rsa_private_key_file = NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines