Revert "Enable strict TLS certificate checks by default"

This reverts commit 6d9ff3d248.
This commit is contained in:
bjoern
2020-06-06 15:38:51 +02:00
committed by link2xt
parent 5239f2edad
commit ec441b16f1
4 changed files with 22 additions and 14 deletions

View File

@@ -3793,10 +3793,9 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
*/
/**
* Accept invalid certificates, including self-signed ones
* or having incorrect hostname.
* Configure certificate checks automatically.
*/
#define DC_CERTCK_ACCEPT_INVALID_CERTIFICATES 0
#define DC_CERTCK_AUTO 0
/**
* Strictly check TLS certificates;
@@ -3804,6 +3803,12 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
*/
#define DC_CERTCK_STRICT 1
/**
* Accept invalid certificates, including self-signed ones
* or having incorrect hostname.
*/
#define DC_CERTCK_ACCEPT_INVALID_CERTIFICATES 3
/**
* @}
*/