Sets certificates now over set_certs function.
FossilOrigin-Name: 6559f5f92e3e6fc4ea56a2d3c221cf49bf4d608d3858889a49c37b78f3778f25
This commit is contained in:
parent
cdb144b3c3
commit
bbdce4c404
@ -50,10 +50,13 @@ int dtls_openssl_connect(struct conn * conn)
|
||||
if (conn->dtls_psk)
|
||||
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){
|
||||
}
|
||||
|
||||
char errstr[256];
|
||||
// char errstr[256];
|
||||
int rc;
|
||||
// do{
|
||||
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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user