diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-06 17:10:00 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-06 17:10:00 +0000 |
commit | 6939a82c2108622a84aac4e3a425ed613d393912 (patch) | |
tree | e8bfd078da17764204dc77d8ad551f06ca76a2ec /encryptedPacket.cpp | |
parent | readded kd generate (diff) |
fixed wrong payload length bug
Diffstat (limited to 'encryptedPacket.cpp')
-rw-r--r-- | encryptedPacket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encryptedPacket.cpp b/encryptedPacket.cpp index a8e7a36..eb459e4 100644 --- a/encryptedPacket.cpp +++ b/encryptedPacket.cpp @@ -59,7 +59,7 @@ EncryptedPacket::~EncryptedPacket() length_ = max_length_ + sizeof(struct HeaderStruct); } -void EncryptedPacket::setPayloadLength(u_int8_t payload_length) +void EncryptedPacket::setPayloadLength(u_int32_t payload_length) { if( auth_tag_) length_= payload_length + sizeof(struct HeaderStruct)+AUTHTAG_SIZE; |