aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encode.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/encode.c')
-rw-r--r--g10/encode.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/g10/encode.c b/g10/encode.c
index 901d0acae..7cacd9ef2 100644
--- a/g10/encode.c
+++ b/g10/encode.c
@@ -556,3 +556,19 @@ write_pubkey_enc_from_list( PK_LIST pk_list, DEK *dek, IOBUF out )
return 0;
}
+void
+encode_crypt_files(int argc, char **argv, STRLIST remusr)
+{
+ int rc = 0;
+
+ while (argc--) {
+ print_file_status(STATUS_FILE_START, *argv, 2);
+ if ( (rc = encode_crypt(*argv, remusr)) )
+ log_error("%s: encryption failed: %s\n", print_fname_stdin(*argv),
+ g10_errstr(rc) );
+ write_status( STATUS_FILE_DONE );
+ argv++;
+ }
+}
+
+ \ No newline at end of file