summaryrefslogtreecommitdiff
path: root/src/anytun.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-17 15:53:22 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-17 15:53:22 +0000
commit7d04626ef28ca5d27bc8515660c58bb135aa8c93 (patch)
treed8affb3523764a4be6aba9b6bd227e875ebb2096 /src/anytun.cpp
parentremoved key derivation rate entirely (diff)
added support for configurabel auth tag length
Diffstat (limited to 'src/anytun.cpp')
-rw-r--r--src/anytun.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/anytun.cpp b/src/anytun.cpp
index c19ceb5..99f1560 100644
--- a/src/anytun.cpp
+++ b/src/anytun.cpp
@@ -149,7 +149,7 @@ void sender(TunDevice* dev, PacketSource* src)
std::auto_ptr<AuthAlgo> a(AuthAlgoFactory::create(gOpt.getAuthAlgo(), KD_OUTBOUND) );
PlainPacket plain_packet(MAX_PACKET_LENGTH);
- EncryptedPacket encrypted_packet(MAX_PACKET_LENGTH);
+ EncryptedPacket encrypted_packet(MAX_PACKET_LENGTH, gOpt.getAuthTagLength());
u_int16_t mux = gOpt.getMux();
PacketSourceEndpoint emptyEndpoint;
@@ -237,7 +237,7 @@ void receiver(TunDevice* dev, PacketSource* src)
std::auto_ptr<Cipher> c(CipherFactory::create(gOpt.getCipher(), KD_INBOUND, gOpt.getAnytun02Compat()));
std::auto_ptr<AuthAlgo> a(AuthAlgoFactory::create(gOpt.getAuthAlgo(), KD_INBOUND));
- EncryptedPacket encrypted_packet(MAX_PACKET_LENGTH);
+ EncryptedPacket encrypted_packet(MAX_PACKET_LENGTH, gOpt.getAuthTagLength());
PlainPacket plain_packet(MAX_PACKET_LENGTH);
while(1) {