Fix certificate verification.

The connection state wasn't getting updated.
This commit is contained in:
Ben Kibbey 2012-09-02 11:35:08 -04:00 committed by Oswald Buddenhagen
parent 0a8f19294c
commit 47fe4b7998

View File

@ -278,6 +278,7 @@ socket_start_tls( conn_t *conn, void (*cb)( int ok, void *aux ) )
conn->ssl = SSL_new( ((server_conf_t *)conn->conf)->SSLContext ); conn->ssl = SSL_new( ((server_conf_t *)conn->conf)->SSLContext );
SSL_set_fd( conn->ssl, conn->fd ); SSL_set_fd( conn->ssl, conn->fd );
SSL_set_mode( conn->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER ); SSL_set_mode( conn->ssl, SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER );
conn->state = SCK_STARTTLS;
start_tls_p2( conn ); start_tls_p2( conn );
} }