diff options
| author | Werner Koch <[email protected]> | 2018-01-22 14:50:24 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2018-01-22 14:50:24 +0000 |
| commit | 0131d4369a81a51bf7bb328cc81a3bb082ed1a94 (patch) | |
| tree | 3d86a4fb3ec39cc7bc1bcfc6a33ad5bef2f99c82 /g10/main.h | |
| parent | gpg: Support EAX if for latest Libgcrypt. (diff) | |
| download | gnupg-0131d4369a81a51bf7bb328cc81a3bb082ed1a94.tar.gz gnupg-0131d4369a81a51bf7bb328cc81a3bb082ed1a94.zip | |
gpg: Refactor function encrypt_seskey.
* g10/encrypt.c (encrypt_seskey): Allocate the buffer for the
encrypted key and returns that buffer and its length.
(encrypt_simple): Adjust for above change.
(write_symkey_enc): Ditto.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/main.h')
| -rw-r--r-- | g10/main.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/main.h b/g10/main.h index 393a1b09e..509126c65 100644 --- a/g10/main.h +++ b/g10/main.h @@ -232,7 +232,8 @@ void display_online_help( const char *keyword ); /*-- encode.c --*/ int setup_symkey (STRING2KEY **symkey_s2k,DEK **symkey_dek); -void encrypt_seskey (DEK *dek, DEK **seskey, byte *enckey); +gpg_error_t encrypt_seskey (DEK *dek, DEK **r_seskey, + void **r_enckey, size_t *r_enckeylen); int use_aead (pk_list_t pk_list, int algo); int use_mdc (pk_list_t pk_list,int algo); int encrypt_symmetric (const char *filename ); |
