summaryrefslogtreecommitdiff
path: root/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'packet.h')
-rw-r--r--packet.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/packet.h b/packet.h
index b0dff5b..813b694 100644
--- a/packet.h
+++ b/packet.h
@@ -33,6 +33,7 @@
#include "datatypes.h"
#include "buffer.h"
+#include "authTag.h"
class Packet : public Buffer
{
@@ -58,8 +59,8 @@ public:
bool hasAuthTag() const;
Packet& withAuthTag(bool b);
- auth_tag_t getAuthTag() const;
- Packet& addAuthTag(auth_tag_t auth_tag);
+ AuthTag getAuthTag() const;
+ Packet& addAuthTag(AuthTag auth_tag);
Packet& removeAuthTag();
private:
@@ -71,6 +72,8 @@ private:
bool has_header_;
bool has_payload_type_;
bool has_auth_tag_;
+ // FIXXMEE: remove hardcoded authtag-size
+ static const u_int32_t AUTHTAG_SIZE = 10;
};
#endif