Bug 1057791: Switch PR_ASSERT to assert in pkixcheck.cpp, r=keeler
authorBrian Smith <brian@briansmith.org>
Sun, 17 Aug 2014 16:50:45 -0700
changeset 224160 567fd3fb6867015017caa7ab0cdabd58132805d8
parent 224159 dce9df551b5fd6cb3be319b3731525c3aea2288a
child 224161 8ff0094b610dd8b1f5e3ec5e26462244b59b62fe
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler
bugs1057791
milestone34.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1057791: Switch PR_ASSERT to assert in pkixcheck.cpp, r=keeler
security/pkix/lib/pkixcheck.cpp
--- a/security/pkix/lib/pkixcheck.cpp
+++ b/security/pkix/lib/pkixcheck.cpp
@@ -366,17 +366,17 @@ CheckBasicConstraints(EndEntityOrCA endE
       // certificate with the CA bit from successfully validating when we check
       // it from pkixocsp.cpp, which is a good thing.
       return Result::ERROR_CA_CERT_USED_AS_END_ENTITY;
     }
 
     return Success;
   }
 
-  PORT_Assert(endEntityOrCA == EndEntityOrCA::MustBeCA);
+  assert(endEntityOrCA == EndEntityOrCA::MustBeCA);
 
   // End-entity certificates are not allowed to act as CA certs.
   if (!isCA) {
     return Result::ERROR_CA_CERT_INVALID;
   }
 
   if (pathLenConstraint >= 0 &&
       static_cast<long>(subCACount) > pathLenConstraint) {