summaryrefslogtreecommitdiff
path: root/authAlgo.h
diff options
context:
space:
mode:
authorErwin Nindl <nine@wirdorange.org>2007-12-27 11:57:12 +0000
committerErwin Nindl <nine@wirdorange.org>2007-12-27 11:57:12 +0000
commita3e710fbd44ca8a0f4840b4e3366c6fc946ecfc5 (patch)
treeb5b189fa102e382da25b8c7385e628ed3889b335 /authAlgo.h
parentadded anytun to isakmpd (diff)
* cypher and auth-algo selectable via commandline
* libgcrypt uses secure memory now * a few bugfixes
Diffstat (limited to 'authAlgo.h')
-rw-r--r--authAlgo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/authAlgo.h b/authAlgo.h
index 4db534d..e3a81be 100644
--- a/authAlgo.h
+++ b/authAlgo.h
@@ -45,12 +45,15 @@ public:
virtual ~AuthAlgo() {};
virtual AuthTag calc(const Buffer& buf) { return AuthTag(0); };
+ virtual void setKey(Buffer key) {};
};
class NullAuthAlgo : public AuthAlgo
{
public:
+ NullAuthAlgo() {};
AuthTag calc(const Buffer& buf);
+ void setKey(Buffer key) {};
};
@@ -78,6 +81,7 @@ public:
AuthTag calc(const Buffer& buf);
protected:
static const char* MIN_GCRYPT_VERSION;
+ static const u_int32_t GCRYPT_SEC_MEM = 32768; // 32k secure memory
gcry_md_hd_t ctx_;
Mutex mutex_;
};