From 211929876b84beba330a8fed2130feaed616cd9f Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Sun, 06 Sep 2015 09:52:31 -0400
Subject: [PATCH] Enigma: GPG keys export

---
 plugins/enigma/lib/enigma_driver_gnupg.php |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/plugins/enigma/lib/enigma_driver_gnupg.php b/plugins/enigma/lib/enigma_driver_gnupg.php
index c7fc2dc..1339c7b 100644
--- a/plugins/enigma/lib/enigma_driver_gnupg.php
+++ b/plugins/enigma/lib/enigma_driver_gnupg.php
@@ -158,6 +158,16 @@
         }
     }
 
+    public function export($keyid)
+    {
+        try {
+            return $this->gpg->exportPublicKey($keyid, true);
+        }
+        catch (Exception $e) {
+            return $this->get_error_from_exception($e);
+        }
+    }
+
     public function list_keys($pattern='')
     {
         try {

--
Gitblit v1.9.1