re-indented
FossilOrigin-Name: 7973b2fa759f3820acf6a79727e3c8969b5f81b3813a8a076bdd61803d5ad6ee
This commit is contained in:
parent
2d5c4ab360
commit
e51d715b8b
@ -14,7 +14,8 @@
|
||||
int dtls_gnutls_connect(struct conn *conn)
|
||||
{
|
||||
struct dtls_gnutls_data *d;
|
||||
d = dtls_gnutls_data_create(conn,GNUTLS_CLIENT | GNUTLS_DATAGRAM | GNUTLS_NONBLOCK);
|
||||
d = dtls_gnutls_data_create(conn,
|
||||
GNUTLS_CLIENT | GNUTLS_DATAGRAM | GNUTLS_NONBLOCK);
|
||||
|
||||
// gnutls_dh_set_prime_bits(d->session, 512);
|
||||
#if GNUTLS_VERSION_NUMBER >= 0x030100
|
||||
@ -31,7 +32,8 @@ int dtls_gnutls_connect(struct conn *conn)
|
||||
|
||||
|
||||
if (rc < 0) {
|
||||
cw_log(LOG_ERR,"Can't connect: %s",gnutls_strerror(rc));
|
||||
cw_log(LOG_ERR, "DTLS (gnutls) Can't connect to %s: %s",
|
||||
sock_addr2str(&conn->addr), gnutls_strerror(rc));
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -45,4 +47,3 @@ int dtls_gnutls_connect(struct conn *conn)
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user