mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-12 01:26:48 +08:00
ignore certificate in DTLS session
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user