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:
@@ -745,7 +745,7 @@ nsSiteSecurityService::ProcessPKPHeader(nsIURI* aSourceURI,
|
||||
certList,
|
||||
false, // don't store intermediates
|
||||
flags)
|
||||
!= SECSuccess) {
|
||||
!= mozilla::pkix::Success) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user