1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

gpg: Minor restructuring of a function.

--

This is for easier reading and future changing.

(cherry picked from commit d984de172c)
This commit is contained in:
Werner Koch 2021-04-12 17:50:17 +02:00
parent b8df8321e1
commit 79f5ffb1ad
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 49 additions and 41 deletions

View file

@ -905,18 +905,17 @@ write_signature_packets (ctrl_t ctrl,
}
/****************
* Sign the files whose names are in FILENAME.
* If DETACHED has the value true,
* make a detached signature. If FILENAMES->d is NULL read from stdin
* and ignore the detached mode. Sign the file with all secret keys
* which can be taken from LOCUSR, if this is NULL, use the default one
* If ENCRYPTFLAG is true, use REMUSER (or ask if it is NULL) to encrypt the
* signed data for these users. If ENCRYPTFLAG is 2 symmetric encryption
* is also used.
* If OUTFILE is not NULL; this file is used for output and the function
* does not ask for overwrite permission; output is then always
* uncompressed, non-armored and in binary mode.
/* Sign the files whose names are in FILENAME using all secret keys
* which can be taken from LOCUSR, if this is NULL, use the default
* secret key.
* If DETACHED has the value true, make a detached signature.
* If FILENAMES->d is NULL read from stdin and ignore the detached mode.
* If ENCRYPTFLAG is true, use REMUSER (or ask if it is NULL) to
* encrypt the signed data for these users. If ENCRYPTFLAG is 2
* symmetric encryption is also used.
* If OUTFILE is not NULL; this file is used for output and the
* function does not ask for overwrite permission; output is then
* always uncompressed, non-armored and in binary mode.
*/
int
sign_file (ctrl_t ctrl, strlist_t filenames, int detached, strlist_t locusr,