diff --git a/src/tlslib.c b/src/tlslib.c index 376e319c..80b6af3d 100644 --- a/src/tlslib.c +++ b/src/tlslib.c @@ -191,6 +191,9 @@ static int verify_certificate_cb(gnutls_session_t session) syslog(LOG_ERR, "%s:%d: Could not obtain worker state.", __func__, __LINE__); return -1; } + + if (session == ws->dtls_session) /* no certificate is verified in DTLS */ + return 0; /* This verification function uses the trusted CAs in the credentials * structure. So you must have installed one or more CA certificates.