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:
parent
4573513a34
commit
c02977a2de
6 changed files with 40 additions and 1 deletions
16
g10/encode.c
16
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++;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue