add:  addAttributeFromCert('validitystart', cert.issuedDate);  addAttributeFromCert('validityend', cert.expiresDate);   var issuer = cert.issuer; var issuerCommonname, issuerOrg, issuerOrgUnit; if (issuer) { issuerCommonname = issuer.commonName; issuerOrg        = issuer.organization; issuerOrgUnit    = issuer.organizationalUnit; } else { var unknownIssuer = bundle.GetStringFromName('unknownIssuer'); issuerCommonname  = unknownIssuer; issuerOrg         = unknownIssuer; issuerOrgUnit     = unknownIssuer; } addAttributeFromCert('issuercommonname', issuerCommonname); addAttributeFromCert('issuerorganization', issuerOrg); addAttributeFromCert('issuerorgunit', issuerOrgUnit); 
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);  for (var i=0; i<count; i++) {    AddUsage(usageList[i]);  }  //  Common Name  addAttributeFromCert('commonname', cert.commonName);  //  Organization  addAttributeFromCert('organization', cert.organization);  //  Organizational Unit  addAttributeFromCert('orgunit', cert.organizationalUnit);  //  Subject Name  addAttributeFromCert('subjectname',cert.subjectName);  //  Issuer Name  addAttributeFromCert('issuername',cert.issuerName);  //  Serial Number  addAttributeFromCert('serialnumber',cert.serialNumber);  //  RSA Public Modulus  addAttributeFromCert('rsapubmodulus',cert.rsaPubModulus);  //  SHA1 Fingerprint  addAttributeFromCert('sha1fingerprint',cert.sha1Fingerprint);  //  MD5 Fingerprint  addAttributeFromCert('md5fingerprint',cert.md5Fingerprint);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/61bdef1ed79b78d6619bdd5905f3df82d8c44ca8/viewCertDetails.js/buggy/security/manager/pki/resources/content/viewCertDetails.js