[client] re-use encryption/HMAC keys in --test mode
authorMichael Rash <mbr@cipherdyne.org>
Sat, 22 Jun 2013 01:08:38 +0000 (21:08 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Sat, 22 Jun 2013 01:08:41 +0000 (21:08 -0400)
commit371036bad0974e1968615be1ddabaa2cbf8405cd
treee2cd18fbf1c2b83d8e87aea02d7524d03b517407
parent6b132862fdb7503fba53c5da61992229a5f7db60
[client] re-use encryption/HMAC keys in --test mode

The client --test mode decrypts SPA packet data as a final step, but get_keys()
was being called to re-acquire the encryption/HMAC keys.  This commit reuses
the same keys that were supplied for SPA packet encryption/authentication
because the most important code to test is not get_keys() but rather libfko
encryption/decryption/authentication operations.
client/fwknop.c
client/fwknop.h
server/fwknopd.h