Sets certificates now over set_certs function.

FossilOrigin-Name: 6559f5f92e3e6fc4ea56a2d3c221cf49bf4d608d3858889a49c37b78f3778f25
This commit is contained in:
7u83@mail.ru 2014-08-02 12:21:29 +00:00
parent cdb144b3c3
commit bbdce4c404
1 changed files with 6 additions and 2 deletions

View File

@ -50,10 +50,13 @@ int dtls_openssl_connect(struct conn * conn)
if (conn->dtls_psk) if (conn->dtls_psk)
SSL_set_psk_client_callback( d->ssl, psk_client_cb); SSL_set_psk_client_callback( d->ssl, psk_client_cb);
dtls_openssl_set_certs(conn,d);
if (conn->dtls_cert_file && conn->dtls_key_file){ if (conn->dtls_cert_file && conn->dtls_key_file){
} }
char errstr[256]; // char errstr[256];
int rc; int rc;
// do{ // do{
rc = SSL_connect(d->ssl); rc = SSL_connect(d->ssl);
@ -84,7 +87,8 @@ int dtls_openssl_connect(struct conn * conn)
} }
rc = dtls_openssl_log_error(d->ssl,rc,"DTLS connect"); // rc = dtls_openssl_log_error(d->ssl,rc,"DTLS connect");
rc = dtls_openssl_log_error(0,rc,"DTLS connect");
// } while (rc == 0 ); // } while (rc == 0 );