[geary/gnumdk/tls_deprecated: 5/5] engine: TlsCertificateFlags.VALIDATE_ALL is the default value
- From: Cédric Bellegarde <cbellegarde src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/gnumdk/tls_deprecated: 5/5] engine: TlsCertificateFlags.VALIDATE_ALL is the default value
- Date: Sat, 23 Jul 2022 17:44:55 +0000 (UTC)
commit 29fd38728ece5df52de37f7719765198d6aa8a78
Author: Cédric Bellegarde <cedric bellegarde adishatz org>
Date: Wed Jul 20 13:44:07 2022 +0200
engine: TlsCertificateFlags.VALIDATE_ALL is the default value
And setting another value is deprecated.
src/engine/api/geary-endpoint.vala | 7 -------
1 file changed, 7 deletions(-)
---
diff --git a/src/engine/api/geary-endpoint.vala b/src/engine/api/geary-endpoint.vala
index f986ed613..0e706e50f 100644
--- a/src/engine/api/geary-endpoint.vala
+++ b/src/engine/api/geary-endpoint.vala
@@ -66,11 +66,6 @@ public class Geary.Endpoint : BaseObject {
/** Transport security method to use when connecting. */
public TlsNegotiationMethod tls_method { get; private set; }
- /** Transport security certificate validation requirements. */
- public TlsCertificateFlags tls_validation_flags {
- get; set; default = TlsCertificateFlags.VALIDATE_ALL;
- }
-
/**
* When set, TLS has reported certificate issues.
*
@@ -172,7 +167,6 @@ public class Geary.Endpoint : BaseObject {
if (this.tls_method == TlsNegotiationMethod.TRANSPORT) {
socket_client.set_tls(true);
- socket_client.set_tls_validation_flags(tls_validation_flags);
socket_client.event.connect(on_socket_client_event);
}
@@ -185,7 +179,6 @@ public class Geary.Endpoint : BaseObject {
// Setting this on Ubuntu 18.04 breaks some TLS
// connections. See issue #217.
// tls_cx.server_identity = this.remote;
- tls_cx.validation_flags = this.tls_validation_flags;
if (Endpoint.default_tls_database != null) {
tls_cx.set_database(Endpoint.default_tls_database);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]