Restore certificate revocation checking

"Restore" is not quite the right word, because we never performed any
certificate revocation checking: it was disabled almost immediately
after it was added due to this bug:

https://bugzilla.redhat.com/show_bug.cgi?id=2003363

which seems to be no longer relevant. So I think we can start doing it
now. In practice, it only works for servers that support OCSP stapling,
which is not much.
This commit is contained in:
Michael Catanzaro 2022-07-26 08:27:46 -05:00
parent 2d05ff47b2
commit 1d511bce13
2 changed files with 0 additions and 17 deletions

View File

@ -16,9 +16,6 @@ License: LGPLv2+
URL: https://gitlab.gnome.org/GNOME/glib-networking
Source0: https://download.gnome.org/sources/glib-networking/2.74/%{name}-%{tarball_version}.tar.xz
# https://bugzilla.redhat.com/show_bug.cgi?id=2024296
Patch0: sabotage-revocation-checks.patch
BuildRequires: ca-certificates
BuildRequires: gcc
BuildRequires: gettext

View File

@ -1,14 +0,0 @@
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 1b60740..e8fee43 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -1016,7 +1016,7 @@ g_tls_connection_gnutls_verify_chain (GTlsConnectionBase *tls,
* GTlsDatabaseGnutls.
*/
database = g_tls_connection_get_database (G_TLS_CONNECTION (gnutls));
- if (!G_IS_TLS_DATABASE_GNUTLS (database))
+ if (TRUE) /* Fedora: sabotage new codepath due to https://bugzilla.redhat.com/show_bug.cgi?id=2024296 */
{
return g_tls_database_verify_chain (database,
chain,