diff options
author | Neal H. Walfield <[email protected]> | 2016-02-03 13:23:51 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2016-02-14 13:46:30 +0000 |
commit | 9663b088480cef6734a3c5892d5ddbbd60ecc1a4 (patch) | |
tree | f8ec39ad5d9f271b7a8c7c61528d8df25985d1e8 /g10/encrypt.c | |
parent | gpg: Fix calc_header_length when LEN is 0 and improve documentation. (diff) | |
download | gnupg-9663b088480cef6734a3c5892d5ddbbd60ecc1a4.tar.gz gnupg-9663b088480cef6734a3c5892d5ddbbd60ecc1a4.zip |
gpg: Improve API documentation.
* g10/seskey.c (make_session_key): Improve documentation.
(encode_session_key): Improve documentation.
* g10/encrypt.c (encrypt_seskey): Remove gratuitous initialization.
* g10/dek.h (DEK): Improve documenation.
--
Signed-off-by: Neal H. Walfield <[email protected]>
Diffstat (limited to 'g10/encrypt.c')
-rw-r--r-- | g10/encrypt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c index abd800258..46b0be0cc 100644 --- a/g10/encrypt.c +++ b/g10/encrypt.c @@ -75,7 +75,6 @@ encrypt_seskey (DEK *dek, DEK **seskey, byte *enckey) if (!*seskey) { *seskey=xmalloc_clear(sizeof(DEK)); - (*seskey)->keylen=dek->keylen; (*seskey)->algo=dek->algo; make_session_key(*seskey); /*log_hexdump( "thekey", c->key, c->keylen );*/ @@ -326,7 +325,7 @@ encrypt_simple (const char *filename, int mode, int use_seskey) if (!opt.no_literal) { - /* Note that PT has been initialized above in no_literal mode. */ + /* Note that PT has been initialized above in !no_literal mode. */ pt->timestamp = make_timestamp(); pt->mode = opt.textmode? 't' : 'b'; pt->len = filesize; |