diff options
author | Erwin Nindl <nine@wirdorange.org> | 2007-12-27 11:57:12 +0000 |
---|---|---|
committer | Erwin Nindl <nine@wirdorange.org> | 2007-12-27 11:57:12 +0000 |
commit | a3e710fbd44ca8a0f4840b4e3366c6fc946ecfc5 (patch) | |
tree | b5b189fa102e382da25b8c7385e628ed3889b335 /authAlgo.h | |
parent | added 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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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_; }; |