mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
This commit is contained in:
parent
60fd09df9f
commit
67356cdd63
2 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
2002-10-07 David Shaw <dshaw@jabberwocky.com>
|
2002-10-07 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* mainproc.c (symkey_decrypt_sesskey): Fix compiler warning.
|
||||||
|
|
||||||
* keylist.c (print_capabilities): Properly indicate per-key
|
* keylist.c (print_capabilities): Properly indicate per-key
|
||||||
capabilities of sign&encrypt primary keys that have
|
capabilities of sign&encrypt primary keys that have
|
||||||
secret-parts-missing (i.e. no capabilities at all).
|
secret-parts-missing (i.e. no capabilities at all).
|
||||||
|
|
|
@ -245,7 +245,8 @@ symkey_decrypt_sesskey( DEK *dek, byte *sesskey, size_t slen )
|
||||||
int n;
|
int n;
|
||||||
|
|
||||||
if ( slen < 17 || slen > 33 ) {
|
if ( slen < 17 || slen > 33 ) {
|
||||||
log_error ( _("weird size for an encrypted session key (%d)\n"), slen);
|
log_error ( _("weird size for an encrypted session key (%d)\n"),
|
||||||
|
(int)slen);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
hd = cipher_open( dek->algo, CIPHER_MODE_CFB, 1 );
|
hd = cipher_open( dek->algo, CIPHER_MODE_CFB, 1 );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue