Fix packet authentication.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 18 Dec 2009 00:15:25 +0000 (01:15 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 18 Dec 2009 00:15:25 +0000 (01:15 +0100)
commitc845bc109c85e6fb350096c63e13ef8e617ee29b
tree237498e82936acbcd81c2eb77e7c53ad15930d39
parent10d609b1f0dd9eeb024cd40359683d48542aecbf
Fix packet authentication.

This wasn't working at all, since we didn't do HMAC but just a plain hash.
Also, verification of packets failed because it was checking the whole packet,
not the packet minus the HMAC.
src/gcrypt/digest.c
src/gcrypt/digest.h
src/net_packet.c
src/openssl/digest.c
src/openssl/digest.h
src/protocol_key.c