Deprecate AcceptInvalidHostnames option

Rustls does not offer a documented way to accept valid certificates with
invalid hostnames. Implementation of certificate verification in Rustls
does not have a public API and reimplementing it is error-prone.
This commit is contained in:
Alexander Krotov
2019-12-08 19:34:39 +03:00
committed by Floris Bruynooghe
parent cd951ad396
commit c08a1adc9b
3 changed files with 9 additions and 17 deletions

View File

@@ -4050,11 +4050,6 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
*/
#define DC_CERTCK_STRICT 1
/**
* Accept invalid hostnames, but not invalid certificates.
*/
#define DC_CERTCK_ACCEPT_INVALID_HOSTNAMES 2
/**
* Accept invalid certificates, including self-signed ones
* or having incorrect hostname.