소스 검색

Use system certificate trust store

Makes it possible to use certificates from all popular CAs with
TigerVNC.
tags/v1.9.90
Pierre Ossman 5 년 전
부모
커밋
c04f756bd2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3
    0
      common/rfb/CSecurityTLS.cxx

+ 3
- 0
common/rfb/CSecurityTLS.cxx 파일 보기

@@ -229,6 +229,9 @@ 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)
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)
throw AuthFailureException("load of CA cert failed");


Loading…
취소
저장