gpg: Refactor function encrypt_seskey.
authorWerner Koch <wk@gnupg.org>
Mon, 22 Jan 2018 14:50:24 +0000 (15:50 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 22 Jan 2018 14:50:24 +0000 (15:50 +0100)
commit0131d4369a81a51bf7bb328cc81a3bb082ed1a94
tree3d86a4fb3ec39cc7bc1bcfc6a33ad5bef2f99c82
parent7356d6ec50ea24bc9449187e1c2b3ecd717b789f
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 <wk@gnupg.org>
g10/encrypt.c
g10/gpgcompose.c
g10/main.h