1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

New command (encrypt-files).

This commit is contained in:
Timo Schulz 2002-01-03 19:47:20 +00:00
parent 4573513a34
commit c02977a2de
6 changed files with 40 additions and 1 deletions

View file

@ -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++;
}
}