Make authmode optional

This commit is contained in:
Ludovic Chenut 2023-11-29 16:19:31 +01:00
parent ec51a19880
commit 525fb37882
No known key found for this signature in database
GPG Key ID: D9A59B1907F1D50C
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ proc accept*(self: Dtls): Future[DtlsConn] {.async.} =
mb_ssl_setup(res.ssl, res.config)
mb_ssl_session_reset(res.ssl)
mbedtls_ssl_set_verify(addr res.ssl, verify, cast[pointer](res))
mbedtls_ssl_conf_authmode(addr res.config, MBEDTLS_SSL_VERIFY_REQUIRED) # TODO: create template
mbedtls_ssl_conf_authmode(addr res.config, MBEDTLS_SSL_VERIFY_OPTIONAL) # TODO: create template
mb_ssl_set_bio(res.ssl, cast[pointer](res),
dtlsSend, dtlsRecv, nil)
while true: