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:
parent
b8df8321e1
commit
79f5ffb1ad
2 changed files with 49 additions and 41 deletions
23
g10/sign.c
23
g10/sign.c
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue