From 55d97625b8f658a4c6cacb3dd74fcc53937f1f7a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 18 Jan 2009 18:00:46 +0000 Subject: doing replay protection before learning remote host added some length checks for incoming packets --- src/encryptedPacket.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/encryptedPacket.h') diff --git a/src/encryptedPacket.h b/src/encryptedPacket.h index ac67950..4f64022 100644 --- a/src/encryptedPacket.h +++ b/src/encryptedPacket.h @@ -52,6 +52,12 @@ public: */ ~EncryptedPacket() {}; + /** + * Get the length of the header + * @return the length of the header + */ + static u_int32_t getHeaderLength(); + /** * Get the sequence number * @return seqence number @@ -100,7 +106,7 @@ public: * Get the length of the payload * @return the length of the payload */ - u_int32_t getPayloadLength() const; + u_int32_t getPayloadLength() const; /** * Set the length of the payload -- cgit v1.2.3