diff options
Diffstat (limited to 'net/base/cert_database_nss.cc')
-rw-r--r-- | net/base/cert_database_nss.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/base/cert_database_nss.cc b/net/base/cert_database_nss.cc index 8fb51e0..e198e35 100644 --- a/net/base/cert_database_nss.cc +++ b/net/base/cert_database_nss.cc @@ -197,7 +197,7 @@ X509Certificate* CertDatabase::FindRootInList( } bool CertDatabase::ImportCACerts(const CertificateList& certificates, - unsigned int trust_bits, + TrustBits trust_bits, ImportCertFailureList* not_imported) { X509Certificate* root = FindRootInList(certificates); bool success = psm::ImportCACerts(certificates, root, trust_bits, @@ -213,8 +213,8 @@ bool CertDatabase::ImportServerCert(const CertificateList& certificates, return psm::ImportServerCert(certificates, not_imported); } -unsigned int CertDatabase::GetCertTrust( - const X509Certificate* cert, CertType type) const { +CertDatabase::TrustBits CertDatabase::GetCertTrust(const X509Certificate* cert, + CertType type) const { CERTCertTrust nsstrust; SECStatus srv = CERT_GetCertTrust(cert->os_cert_handle(), &nsstrust); if (srv != SECSuccess) { @@ -238,8 +238,8 @@ unsigned int CertDatabase::GetCertTrust( bool CertDatabase::SetCertTrust(const X509Certificate* cert, CertType type, - unsigned int trusted) { - bool success = psm::SetCertTrust(cert, type, trusted); + TrustBits trust_bits) { + bool success = psm::SetCertTrust(cert, type, trust_bits); if (success) CertDatabase::NotifyObserversOfCertTrustChanged(cert); |