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

Comparing ircd-hybrid/trunk/src/tls_openssl.c (file contents):
Revision 7232 by michael, Sat Jan 30 18:48:01 2016 UTC vs.
Revision 7233 by michael, Wed Feb 3 16:07:50 2016 UTC

# Line 83 | Line 83 | tls_init(void)
83    SSL_CTX_set_cipher_list(ConfigServerInfo.tls_ctx.server_ctx, "EECDH+HIGH:EDH+HIGH:HIGH:!aNULL");
84  
85   #ifndef OPENSSL_NO_ECDH
86 <  {
87 <    EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
86 >  EC_KEY *key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
87  
88 <    if (key)
89 <    {
90 <      SSL_CTX_set_tmp_ecdh(ConfigServerInfo.tls_ctx.server_ctx, key);
91 <      EC_KEY_free(key);
93 <    }
88 >  if (key)
89 >  {
90 >    SSL_CTX_set_tmp_ecdh(ConfigServerInfo.tls_ctx.server_ctx, key);
91 >    EC_KEY_free(key);
92    }
93  
94    SSL_CTX_set_options(ConfigServerInfo.tls_ctx.server_ctx, SSL_OP_SINGLE_ECDH_USE);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines