diff options
Diffstat (limited to 'pki/base/ca/src/com/netscape')
-rw-r--r-- | pki/base/ca/src/com/netscape/ca/CAService.java | 14 | ||||
-rw-r--r-- | pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java | 1 | ||||
-rw-r--r-- | pki/base/ca/src/com/netscape/ca/CertificateAuthority.java | 10 |
3 files changed, 1 insertions, 24 deletions
diff --git a/pki/base/ca/src/com/netscape/ca/CAService.java b/pki/base/ca/src/com/netscape/ca/CAService.java index 88c9dfb8d..62bae3b5f 100644 --- a/pki/base/ca/src/com/netscape/ca/CAService.java +++ b/pki/base/ca/src/com/netscape/ca/CAService.java @@ -837,7 +837,6 @@ public class CAService implements ICAService, IService { try { CMS.debug("doUTF8 true, updating subject."); - CertificateSubjectName sName = (CertificateSubjectName) certi.get(X509CertInfo.SUBJECT); String subject = certi.get(X509CertInfo.SUBJECT).toString(); @@ -987,20 +986,7 @@ public class CAService implements ICAService, IService { CMS.getUserMessage("CMS_CA_CANT_FIND_CERT_SERIAL", "0x" + serialno.toString(16))); } - RevocationInfo revInfo = (RevocationInfo) certRec.getRevocationInfo(); - CRLExtensions exts = null; - CRLReasonExtension reasonext = null; - if (revInfo != null) - exts = revInfo.getCRLEntryExtensions(); - if (exts != null) { - try { - reasonext = (CRLReasonExtension) - exts.get(CRLReasonExtension.NAME); - } catch (X509ExtensionException e) { - // this means no crl reason extension set. - } - } // allow revoking certs that are on hold. String certStatus = certRec.getStatus(); diff --git a/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java b/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java index dd6194101..d4b747b32 100644 --- a/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java +++ b/pki/base/ca/src/com/netscape/ca/CRLIssuingPoint.java @@ -3029,7 +3029,6 @@ class CertRecProcessor implements IElementProcessor { onlySomeReasons = issuingDistributionPoint.getOnlySomeReasons(); boolean applyReasonMatch = false; - boolean reasonMatch = true; if (onlySomeReasons != null) { applyReasonMatch = !onlySomeReasons.toString().equals("0000000"); diff --git a/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java b/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java index 00fcbae0f..007ebf207 100644 --- a/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java +++ b/pki/base/ca/src/com/netscape/ca/CertificateAuthority.java @@ -931,7 +931,6 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori statsSub.startTiming("signing"); } - long startTime = CMS.getCurrentDate().getTime(); try { DerOutputStream out = new DerOutputStream(); DerOutputStream tmp = new DerOutputStream(); @@ -1006,7 +1005,6 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori statsSub.startTiming("signing"); } - long startTime = CMS.getCurrentDate().getTime(); try { DerOutputStream out = new DerOutputStream(); DerOutputStream tmp = new DerOutputStream(); @@ -1328,7 +1326,7 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori Long l = Long.valueOf(file.length()); byte[] b = new byte[l.intValue()]; FileInputStream in = new FileInputStream(path); - int num = in.read(b); + in.read(b); in.close(); return b; @@ -1589,8 +1587,6 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori } // Initialize Request In Queue notification listener - IConfigStore rq = nc.getSubStore(PROP_REQ_IN_Q_SUBSTORE); - String requestInQListenerClassName = nc.getString("certificateIssuedListenerClassName", "com.netscape.cms.listeners.RequestInQListener"); @@ -1603,9 +1599,6 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori CMS.getLogMessage("CMSCORE_CA_CA_REGISTER_REQ_LISTENER", requestInQListenerClassName)); } - // Initialize extra listeners - IConfigStore mListenerConfig = null; - } else { log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_CA_CA_NOTIFY_NONE")); } @@ -1703,7 +1696,6 @@ public class CertificateAuthority implements ICertificateAuthority, ICertAuthori "initializing crl issue point " + issuePointId); IConfigStore issuePointConfig = null; String issuePointClassName = null; - @SuppressWarnings("unchecked") Class<CRLIssuingPoint> issuePointClass = null; CRLIssuingPoint issuePoint = null; |