[client] in '-M legacy' mode truncate the key to 16 bytes
authorMichael Rash <mbr@cipherdyne.org>
Wed, 10 Jul 2013 01:13:07 +0000 (21:13 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Wed, 10 Jul 2013 01:13:07 +0000 (21:13 -0400)
commit5e3ec3b61117d116695e895f475d2a4e9fc2dc78
treee52f75e91d990ea4f5b3a1b971a5df93db7300d9
parent1b524f8104fad766176f99ee6530988e19dd94fb
[client] in '-M legacy' mode truncate the key to 16 bytes

This change helps to maintain backwards compatibility with older fwknopd daemons
that cannot handle Rijndael keys greater than 16 bytes.  Blair Zajac suggested
printing a warning in '-M legacy' mode when keys are attempted > 16 bytes long,
and this warning is included in this commit.
CREDITS
client/fwknop.c