diff options
author | Tyson Whitehead <twhitehead@gmail.com> | 2021-10-01 18:35:19 -0400 |
---|---|---|
committer | Tyson Whitehead <twhitehead@gmail.com> | 2021-10-07 10:19:12 -0400 |
commit | d32ff1c9600f7f19f5fe391ed6c71cc117ab1521 (patch) | |
tree | da5130e2352d42e58b5abdb07abe4b9a4c4a8369 /common/rfb/CSecurityTLS.cxx | |
parent | cac3849dd5a432826932718c8dd38505f1fd96fb (diff) | |
download | tigervnc-d32ff1c9600f7f19f5fe391ed6c71cc117ab1521.tar.gz tigervnc-d32ff1c9600f7f19f5fe391ed6c71cc117ab1521.zip |
System certificate load returns number loaded not GNUTLS_E_SUCCESS
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 df4b37b5..be70c559 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) |