[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim/certmanager
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2004-05-31 20:36:31
Message-ID: 20040531203631.3815F126E0 () office ! kde ! org
[Download RAW message or body]

CVS commit by mutz: 

Add a menu item to clear the CRL cache (Ae2-Issue #199)


  M +13 -0     certmanager.cpp   1.101
  M +1 -0      certmanager.h   1.44
  M +5 -1      kleopatraui.rc   1.19


--- kdepim/certmanager/certmanager.cpp  #1.100:1.101
@@ -323,4 +323,9 @@ void CertManager::createActions() {
   action->setEnabled( mDirMngrFound ); // we also need dirmngr for this
 
+  action = new KAction( i18n("Clear CRL Cache..."), 0,
+                        this, SLOT(slotClearCRLs()),
+                        actionCollection(), "crl_clear_crl_cache" );
+  action->setEnabled( mDirMngrFound ); // we also need dirmngr for this
+
   action = new KAction( i18n("GnuPG Log Viewer..."), "pgp-keys", 0, this,
                         SLOT(slotStartWatchGnuPG()), actionCollection(), "tools_start_kwatchgnupg");
@@ -928,4 +933,12 @@ void CertManager::slotViewCRLs() {
 
 
+void CertManager::slotClearCRLs() {
+  // FIXME: report errors
+  KProcess p;
+  p << "dirmngr" << "--flush";
+  p.start( KProcess::DontCare );
+}
+
+
 static void showDeleteError( QWidget * parent, const GpgME::Error & err ) {
   assert( err );

--- kdepim/certmanager/certmanager.h  #1.43:1.44
@@ -122,4 +122,5 @@ private slots:
 
     void slotViewCRLs();
+    void slotClearCRLs();
 
     void slotViewDetails();

--- kdepim/certmanager/kleopatraui.rc  #1.18:1.19
@@ -1,3 +1,3 @@
-<!DOCTYPE kpartgui ><kpartgui name="kleopatra" version="17" >
+<!DOCTYPE kpartgui ><kpartgui name="kleopatra" version="18" >
 <MenuBar>
         <Menu name="file">
@@ -35,4 +35,8 @@
                 <Action name="download_certificate"/>
         </Menu>
+        <Menu name="crlMenu">
+                <text>C&RLs</text>
+                <Action name="crl_clear_crl_cache"/>
+        </Menu>
         <Menu name="tools">
                 <text>&amp;Tools</text>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic