1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:37:44 +00:00

LibTLS: Add option to allow self-signed certificates

With this option enabled self-signed certificates will be accepted,
eventhough they cannot be verified.
This commit is contained in:
Michiel Visser 2022-02-23 18:21:21 +01:00 committed by Ali Mohammad Pur
parent 804af863b4
commit 7bc3b193c0
2 changed files with 2 additions and 1 deletions

View file

@ -252,6 +252,7 @@ struct Options {
OPTION_WITH_DEFAULTS(bool, use_sni, true)
OPTION_WITH_DEFAULTS(bool, use_compression, false)
OPTION_WITH_DEFAULTS(bool, validate_certificates, true)
OPTION_WITH_DEFAULTS(bool, allow_self_signed_certificates, false)
OPTION_WITH_DEFAULTS(Optional<Vector<Certificate>>, root_certificates, )
OPTION_WITH_DEFAULTS(Function<void(AlertDescription)>, alert_handler, [](auto) {})
OPTION_WITH_DEFAULTS(Function<void()>, finish_callback, [] {})