send ssl struct when logging error message
FossilOrigin-Name: 3fdaf0bd98b07ef474fc82ff2d61ded4f740cfe399241d932a88430dce5a6540
This commit is contained in:
parent
25f244a8bd
commit
f837f51262
@ -42,7 +42,8 @@ static BIO_METHOD bio_methods = {
|
||||
}
|
||||
|
||||
|
||||
int dtls_openssl_connect(struct conn *conn)
|
||||
int
|
||||
dtls_openssl_connect(struct conn *conn)
|
||||
{
|
||||
struct dtls_openssl_data *d;
|
||||
int rc;
|
||||
@ -58,8 +59,8 @@ int dtls_openssl_connect(struct conn *conn)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
// if (conn->dtls_psk)
|
||||
// SSL_set_psk_client_callback(d->ssl, psk_client_cb);
|
||||
if (conn->dtls_psk)
|
||||
SSL_set_psk_client_callback(d->ssl, psk_client_cb);
|
||||
*/
|
||||
|
||||
|
||||
@ -77,10 +78,7 @@ int dtls_openssl_connect(struct conn *conn)
|
||||
return 1;
|
||||
}
|
||||
|
||||
rc = dtls_openssl_log_error(0, rc, "DTLS connect");
|
||||
|
||||
|
||||
|
||||
|
||||
rc = dtls_openssl_log_error(d->ssl, rc, "DTLS connect");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user