Bug 1296317 - Stop calling PR_SetError() in VerifyCert() and VerifySSLServerCert(). r=keeler

The PR_SetError() + PR_GetError() pattern currently used is error prone and
unnecessary. The functions involved can instead return mozilla::pkix::Result,
which is equally expressive and more robust.

MozReview-Commit-ID: Hkd39eqTvds
This commit is contained in:
Cykesiopka
2016-10-10 15:44:41 +08:00
parent eae68c92d1
commit 1eefbe0772
8 changed files with 158 additions and 175 deletions

View File

@@ -745,7 +745,7 @@ nsSiteSecurityService::ProcessPKPHeader(nsIURI* aSourceURI,
certList,
false, // don't store intermediates
flags)
!= SECSuccess) {
!= mozilla::pkix::Success) {
return NS_ERROR_FAILURE;
}