From: Pierre Ossman Date: Wed, 5 Jul 2023 08:43:47 +0000 (+0200) Subject: Remove double expired certificate prompts X-Git-Tag: v1.13.90~68^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=59b467ebb9c14077651af27181c72f7641a8b4ed;p=tigervnc.git Remove double expired certificate prompts This should have been done in 5f46d55. --- diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index 49c3c818..08b45da6 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -315,14 +315,6 @@ void CSecurityTLS::checkSession() if (status & GNUTLS_CERT_REVOKED) throw AuthFailureException("server certificate has been revoked"); - if (status & GNUTLS_CERT_EXPIRED) { - vlog.debug("server certificate has expired"); - if (!msg->showMsgBox(UserMsgBox::M_YESNO, "certificate has expired", - "The certificate of the server has expired, " - "do you want to continue?")) - throw AuthFailureException("server certificate has expired"); - } - /* Process other errors later */ cert_list = gnutls_certificate_get_peers(session, &cert_list_size);