From: Pierre Ossman Date: Thu, 24 Mar 2022 13:06:05 +0000 (+0100) Subject: Print GnuTLS certificate status as hex X-Git-Tag: v1.12.90~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a97e9b119e58dd2d59fa479b6c753c940d093e8f;p=tigervnc.git Print GnuTLS certificate status as hex It's a bit field so it's easier to decode in hex. --- diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index 54d995b1..ca1c919b 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -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"); }