aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ks-action.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-03-13 12:44:18 +0000
committerNeal H. Walfield <[email protected]>2015-03-23 18:58:27 +0000
commit9e79a15f74c428624b0049a3f6a077c1bc7c731d (patch)
tree27efbddcc523de2c5be915e4a58c4a7a0778588c /dirmngr/ks-action.c
parentMove armor_data to misc.c. (diff)
downloadgnupg-9e79a15f74c428624b0049a3f6a077c1bc7c731d.tar.gz
gnupg-9e79a15f74c428624b0049a3f6a077c1bc7c731d.zip
Move copy_stream function to misc.c.
* dirmngr/ks-action.c (copy_stream): Move function from here... * dirmngr/misc.c (copy_stream): ... to here and drop the static qualifier. * dirmngr/misc.h (copy_stream): Add declaration. -- Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'dirmngr/ks-action.c')
-rw-r--r--dirmngr/ks-action.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/dirmngr/ks-action.c b/dirmngr/ks-action.c
index e4cd8f165..8e2f520c2 100644
--- a/dirmngr/ks-action.c
+++ b/dirmngr/ks-action.c
@@ -31,25 +31,6 @@
#include "ks-action.h"
-/* Copy all data from IN to OUT. */
-static gpg_error_t
-copy_stream (estream_t in, estream_t out)
-{
- char buffer[512];
- size_t nread;
-
- while (!es_read (in, buffer, sizeof buffer, &nread))
- {
- if (!nread)
- return 0; /* EOF */
- if (es_write (out, buffer, nread, NULL))
- break;
-
- }
- return gpg_error_from_syserror ();
-}
-
-
/* Called by the engine's help functions to print the actual help. */
gpg_error_t
ks_print_help (ctrl_t ctrl, const char *text)