/[cvs]/eggdrop1.8/src/tls.c
ViewVC logotype

Diff of /eggdrop1.8/src/tls.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.1 by pseudo, Mon Nov 8 10:02:32 2010 UTC revision 1.2.2.2 by thommey, Tue Feb 8 22:06:01 2011 UTC
# Line 629  void ssl_info(SSL *ssl, int where, int r Line 629  void ssl_info(SSL *ssl, int where, int r
629    }    }
630    
631    /* Display the state of the engine for debugging purposes */    /* Display the state of the engine for debugging purposes */
632  /*  debug1("TLS: state change: %s", SSL_state_string_long(ssl)); */    debug1("TLS: state change: %s", SSL_state_string_long(ssl));
633  }  }
634            
635  /* Switch a socket to SSL communication  /* Switch a socket to SSL communication
# Line 696  int ssl_handshake(int sock, int flags, i Line 696  int ssl_handshake(int sock, int flags, i
696     */     */
697    SSL_set_verify_depth(td->socklist[i].ssl, tls_maxdepth + 1);    SSL_set_verify_depth(td->socklist[i].ssl, tls_maxdepth + 1);
698    
699    SSL_set_mode(td->socklist[i].ssl, SSL_MODE_ENABLE_PARTIAL_WRITE);    SSL_set_mode(td->socklist[i].ssl, SSL_MODE_ENABLE_PARTIAL_WRITE |
700                   SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);
701    if (data->flags & TLS_CONNECT) {    if (data->flags & TLS_CONNECT) {
702      SSL_set_verify(td->socklist[i].ssl, SSL_VERIFY_PEER, ssl_verify);      SSL_set_verify(td->socklist[i].ssl, SSL_VERIFY_PEER, ssl_verify);
703      ret = SSL_connect(td->socklist[i].ssl);      ret = SSL_connect(td->socklist[i].ssl);

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23