rem: } else { /* if (verifystate == cert.NOT_VERIFIED_UNKNOWN) */ 
add: } else { /* if (verifystate == cert.NOT_VERIFIED_UNKNOWN || == USAGE_NOT_ALLOWED) */ 
context: function DisplayGeneralDataFromCert(cert){  //  Verification and usage  var verifystr = "";  var o1 = {};  var o2 = {};  var o3 = {};  cert.getUsages(o1, o2, o3);  var verifystate = o1.value;  var count = o2.value;  var usageList = o3.value;  if (verifystate == cert.VERIFIED_OK) {    verifystr = bundle.GetStringFromName('certVerified');  } else if (verifystate == cert.CERT_REVOKED) {    verifystr = bundle.GetStringFromName('certNotVerified_CertRevoked');  } else if (verifystate == cert.CERT_EXPIRED) {    verifystr = bundle.GetStringFromName('certNotVerified_CertExpired');  } else if (verifystate == cert.CERT_NOT_TRUSTED) {    verifystr = bundle.GetStringFromName('certNotVerified_CertNotTrusted');  } else if (verifystate == cert.ISSUER_NOT_TRUSTED) {    verifystr = bundle.GetStringFromName('certNotVerified_IssuerNotTrusted');  } else if (verifystate == cert.ISSUER_UNKNOWN) {    verifystr = bundle.GetStringFromName('certNotVerified_IssuerUnknown');  } else if (verifystate == cert.INVALID_CA) {    verifystr = bundle.GetStringFromName('certNotVerified_CAInvalid');  } else { /* if (verifystate == cert.NOT_VERIFIED_UNKNOWN) */    verifystr = bundle.GetStringFromName('certNotVerified_Unknown');  }  var verified=document.getElementById('verified');  verified.setAttribute("value", verifystr);  if (count > 0) {    var verifyInfoBox = document.getElementById('verify_info_box');    for (var i=0; i<count; i++) {      AddUsage(usageList[i],verifyInfoBox);    }  }  //  Common Name  addAttributeFromCert('commonname', cert.commonName);  //  Organization  addAttributeFromCert('organization', cert.organization);  //  Organizational Unit  addAttributeFromCert('orgunit', cert.organizationalUnit);  //  Serial Number  addAttributeFromCert('serialnumber',cert.serialNumber);  //  SHA1 Fingerprint  addAttributeFromCert('sha1fingerprint',cert.sha1Fingerprint);  //  MD5 Fingerprint  addAttributeFromCert('md5fingerprint',cert.md5Fingerprint);  // Validity start  addAttributeFromCert('validitystart', cert.issuedDate);  // Validity end  addAttributeFromCert('validityend', cert.expiresDate);    //Now to populate the fields that correspond to the issuer.  var issuerCommonname, issuerOrg, issuerOrgUnit;  issuerCommonname = cert.issuerCommonName;  issuerOrg = cert.issuerOrganization;  issuerOrgUnit = cert.issuerOrganizationUnit;  addAttributeFromCert('issuercommonname', issuerCommonname);  addAttributeFromCert('issuerorganization', issuerOrg);  addAttributeFromCert('issuerorgunit', issuerOrgUnit);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d47a8b3a35c53a5e8edbc70a41c44e0cb4960326/viewCertDetails.js/buggy/security/manager/pki/resources/content/viewCertDetails.js