Parcourir la source

System certificate load returns number loaded not GNUTLS_E_SUCCESS

tags/v1.12.90
Tyson Whitehead il y a 2 ans
Parent
révision
d32ff1c960
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      common/rfb/CSecurityTLS.cxx

+ 1
- 1
common/rfb/CSecurityTLS.cxx Voir le fichier

@@ -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)

Chargement…
Annuler
Enregistrer