Bug 333767, nsNSSCertificateDB::AddCertFromBase64 mishandles trust settings

r=darin/kengert
This commit is contained in:
kaie%kuix.de 2006-04-20 16:20:32 +00:00
parent ee5e649c5a
commit 15c4bee847

View File

@ -1595,10 +1595,6 @@ NS_IMETHODIMP nsNSSCertificateDB::AddCertFromBase64(const char *aBase64, const c
// need to calculate the trust bits from the aTrust string.
nsresult rv = CERT_DecodeTrustString(trust.GetTrust(), /* this is const, but not declared that way */(char *) aTrust);
NS_ENSURE_SUCCESS(rv, rv); // if bad trust passed in, return error.
trust.SetValidCA();
trust.AddCATrust(trust.GetTrust()->sslFlags,
trust.GetTrust()->emailFlags,
trust.GetTrust()->objectSigningFlags);
rv = ConstructX509FromBase64(aBase64, getter_AddRefs(newCert));