diff options
author | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-09-20 23:38:55 +0000 |
---|---|---|
committer | jmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2010-09-20 23:38:55 +0000 |
commit | 67f41afcb414915fa53e7aee0312a74e640107e8 (patch) | |
tree | 22bebb1f19a8f936c46d2290eeb80bf4b7c9f00e /pki/base/common/src/com/netscape/cms/ocsp | |
parent | 005e9b47d493e0866ed9372f08f77efd97b100da (diff) | |
download | pki-67f41afcb414915fa53e7aee0312a74e640107e8.tar.gz pki-67f41afcb414915fa53e7aee0312a74e640107e8.tar.xz pki-67f41afcb414915fa53e7aee0312a74e640107e8.zip |
Fix Bugzilla Bug 630121 - OCSP responder lacking option to delete or disable a CA that it serves
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1304 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/ocsp')
-rw-r--r-- | pki/base/common/src/com/netscape/cms/ocsp/DefStore.java | 15 | ||||
-rw-r--r-- | pki/base/common/src/com/netscape/cms/ocsp/LDAPStore.java | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/ocsp/DefStore.java b/pki/base/common/src/com/netscape/cms/ocsp/DefStore.java index af9ae71ad..7c9c2bb1f 100644 --- a/pki/base/common/src/com/netscape/cms/ocsp/DefStore.java +++ b/pki/base/common/src/com/netscape/cms/ocsp/DefStore.java @@ -620,6 +620,21 @@ public class DefStore implements IDefStore, IExtendedPluginInfo { name, crlNumber, crlSize, thisUpdate, nextUpdate); } + public void deleteCRLIssuingPointRecord(String id) + throws EBaseException { + + IDBSSession s = null; + + try { + s = mDBService.createSession(); + String name = "cn=" + transformDN(id) + "," + getBaseDN(); + CMS.debug("DefStore::deleteCRLIssuingPointRecord: Attempting to delete: " + name); + if (s != null) s.delete(name); + } finally { + if (s != null) s.close(); + } + } + /** * Creates a new issuing point in OCSP. */ diff --git a/pki/base/common/src/com/netscape/cms/ocsp/LDAPStore.java b/pki/base/common/src/com/netscape/cms/ocsp/LDAPStore.java index b18978036..f3ffaf3fe 100644 --- a/pki/base/common/src/com/netscape/cms/ocsp/LDAPStore.java +++ b/pki/base/common/src/com/netscape/cms/ocsp/LDAPStore.java @@ -396,6 +396,11 @@ public class LDAPStore implements IDefStore, IExtendedPluginInfo { throw new EBaseException("NOT SUPPORTED"); } + public void deleteCRLIssuingPointRecord(String id) + throws EBaseException { + throw new EBaseException("NOT SUPPORTED"); + } + public boolean isNotFoundGood() { try { return isNotFoundGood1(); |