B2G/gecko/security/manager/pki/resources/content/exceptionDialog.js
// returns true if found and global status could be set
returns true if found and global status could be set
returns true if found and global status could be set
function findRecentBadCert(uri) {
  try {
    var recentCertsSvc = Components.classes["@mozilla.org/security/recentbadcerts;1"]
                         .getService(Components.interfaces.nsIRecentBadCertsService);
    if (!recentCertsSvc)
      return false;
    var hostWithPort = uri.host + ":" + uri.port;
    gSSLStatus = recentCertsSvc.getRecentBadCert(hostWithPort);
    if (!gSSLStatus)
      return false;
    gCert = gSSLStatus.QueryInterface(Components.interfaces.nsISSLStatus).serverCert;
    if (!gCert)
      return false;
    gBroken = true;
  }
  catch (e) {
    return false;
  }
  updateCertStatus();  
  return true;
}
function findRecentBadCert ( uri ) { try { var recentCertsSvc = Components . classes [ "@mozilla.org/security/recentbadcerts;1" ] . getService ( Components . interfaces . nsIRecentBadCertsService ) ; if ( ! recentCertsSvc ) return false ; var hostWithPort = uri . host + ":" + uri . port ; gSSLStatus = recentCertsSvc . getRecentBadCert ( hostWithPort ) ; if ( ! gSSLStatus ) return false ; gCert = gSSLStatus . QueryInterface ( Components . interfaces . nsISSLStatus ) . serverCert ; if ( ! gCert ) return false ; gBroken = true ; } catch ( e ) { return false ; } updateCertStatus ( ) ; return true ; }
returns true if found and global status could be set
returns true if found and global status could be set