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

Comparing ircd-hybrid-7.2/src/ircd.c (file contents):
Revision 950 by michael, Tue Jul 21 23:07:52 2009 UTC vs.
Revision 967 by michael, Sun Aug 2 18:05:28 2009 UTC

# Line 470 | Line 470 | init_ssl(void)
470    SSL_load_error_strings();
471    SSLeay_add_ssl_algorithms();
472  
473 <  ServerInfo.ctx = SSL_CTX_new(SSLv23_server_method());
474 <  if (!ServerInfo.ctx)
473 >  if ((ServerInfo.server_ctx = SSL_CTX_new(SSLv23_server_method())) == NULL)
474    {
475      const char *s;
476  
# Line 480 | Line 479 | init_ssl(void)
479      ilog(L_CRIT, "ERROR: Could not initialize the SSL context -- %s\n", s);
480    }
481  
482 <  SSL_CTX_set_options(ServerInfo.ctx, SSL_OP_NO_SSLv2);
483 <  SSL_CTX_set_options(ServerInfo.ctx, SSL_OP_TLS_ROLLBACK_BUG|SSL_OP_ALL);
484 <  SSL_CTX_set_verify(ServerInfo.ctx, SSL_VERIFY_NONE, NULL);
482 >  SSL_CTX_set_options(ServerInfo.server_ctx, SSL_OP_NO_SSLv2);
483 >  SSL_CTX_set_options(ServerInfo.server_ctx, SSL_OP_TLS_ROLLBACK_BUG|SSL_OP_ALL);
484 >  SSL_CTX_set_verify(ServerInfo.server_ctx, SSL_VERIFY_NONE, NULL);
485  
486    bio_spare_fd = save_spare_fd("SSL private key validation");
487   #endif /* HAVE_LIBCRYPTO */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines