New encrypt-files option - CVS code

Werner Koch wk at
Tue Jan 8 20:46:02 CET 2002

On Tue, 8 Jan 2002 20:18:25 +0100, Roger Sondermann said:

> Hello,
> since the addition of the "encrypt-files" option (or maybe earlier),
> "default-recipient-self" is ignored together with the "encrypt"
> option. I've always used "gpg -e file" to encrypt a file just for me


> And what is the real difference between "--encrypt" and
> "--encrypt-files". I can read that "--encrypt" is for data now and

    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 );

i.e. you pass a list of filenames which will all be encrypted one
after the other and status message can be used to keep track of this.



Werner Koch        Omnis enim res, quae dando non deficit, dum habetur
g10 Code GmbH      et non datur, nondum habetur, quomodo habenda est.
Privacy Solutions                                        -- Augustinus

More information about the Gnupg-devel mailing list