瀏覽代碼

Add better error message for insecure certificate algorithms

tags/v1.8.90
Pierre Ossman 6 年之前
父節點
當前提交
e43e5e3051
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      common/rfb/CSecurityTLS.cxx

+ 3
- 0
common/rfb/CSecurityTLS.cxx 查看文件

@@ -332,6 +332,9 @@ void CSecurityTLS::checkSession()
if (status & GNUTLS_CERT_SIGNER_NOT_CA)
vlog.debug("server cert signer not CA");

if (status & GNUTLS_CERT_INSECURE_ALGORITHM)
throw AuthFailureException("The server certificate uses an insecure algorithm");

if ((status & (~allowed_errors)) != 0) {
/* No other errors are allowed */
vlog.debug("GNUTLS status of certificate verification: %u", status);

Loading…
取消
儲存