]> source.dussan.org Git - tigervnc.git/commitdiff
Print GnuTLS certificate status as hex
authorPierre Ossman <ossman@cendio.se>
Thu, 24 Mar 2022 13:06:05 +0000 (14:06 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 24 Mar 2022 13:06:05 +0000 (14:06 +0100)
It's a bit field so it's easier to decode in hex.

common/rfb/CSecurityTLS.cxx

index 54d995b1813eadb09bc1cb7c5f1e0aefd505dbc1..ca1c919becedd19abef2904dd9b115bc2f5ddbab 100644 (file)
@@ -390,7 +390,7 @@ void CSecurityTLS::checkSession()
 
   if ((status & (~allowed_errors)) != 0) {
     /* No other errors are allowed */
-    vlog.debug("GNUTLS status of certificate verification: %u", status);
+    vlog.debug("GNUTLS status of certificate verification: 0x%x", status);
     throw AuthFailureException("Invalid status of server certificate verification");
   }