]> source.dussan.org Git - tigervnc.git/commitdiff
Remove double expired certificate prompts
authorPierre Ossman <ossman@cendio.se>
Wed, 5 Jul 2023 08:43:47 +0000 (10:43 +0200)
committerPierre Ossman <ossman@cendio.se>
Wed, 5 Jul 2023 08:43:47 +0000 (10:43 +0200)
This should have been done in 5f46d55.

common/rfb/CSecurityTLS.cxx

index 49c3c81874491ceb357684c7e577d30cd3f2c243..08b45da6e3c645c4795f7b4213d41d750c1a2b00 100644 (file)
@@ -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);