diff options
author | Pierre Ossman <ossman@cendio.se> | 2021-10-14 09:09:01 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2021-10-14 09:09:01 +0200 |
commit | 32051b8e53ca5f4c5c9e11a3afc45110c3c396e9 (patch) | |
tree | 22d4d3c03e0a3fbcb3da5f43373f67eb690b8f80 /common/rfb/CSecurityTLS.cxx | |
parent | 37f3a8b47f0b17ea1c1cacaf5c048a0bada618d3 (diff) | |
parent | d32ff1c9600f7f19f5fe391ed6c71cc117ab1521 (diff) | |
download | tigervnc-32051b8e53ca5f4c5c9e11a3afc45110c3c396e9.tar.gz tigervnc-32051b8e53ca5f4c5c9e11a3afc45110c3c396e9.zip |
Merge branch 'master' of https://github.com/twhitehead/tigervnc
Diffstat (limited to 'common/rfb/CSecurityTLS.cxx')
-rw-r--r-- | common/rfb/CSecurityTLS.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CSecurityTLS.cxx b/common/rfb/CSecurityTLS.cxx index c2d0b0b9..d0af1410 100644 --- a/common/rfb/CSecurityTLS.cxx +++ b/common/rfb/CSecurityTLS.cxx @@ -284,7 +284,7 @@ void CSecurityTLS::setParam() if (gnutls_certificate_allocate_credentials(&cert_cred) != GNUTLS_E_SUCCESS) throw AuthFailureException("gnutls_certificate_allocate_credentials failed"); - if (gnutls_certificate_set_x509_system_trust(cert_cred) != GNUTLS_E_SUCCESS) + if (gnutls_certificate_set_x509_system_trust(cert_cred) < 1) vlog.error("Could not load system certificate trust store"); if (*cafile && gnutls_certificate_set_x509_trust_file(cert_cred,cafile,GNUTLS_X509_FMT_PEM) < 0) |