summaryrefslogtreecommitdiff
path: root/src/auth_algo.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-13 01:50:09 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-13 01:50:09 +0000
commit63910439f77b91848dda094ef6e90523e1f7efa6 (patch)
tree75660603d4b79520ffea0a1b1b2edb25b8a08371 /src/auth_algo.h
parentmoved hex-dump function to log_* (diff)
added command line option for auth tag length
Diffstat (limited to 'src/auth_algo.h')
-rw-r--r--src/auth_algo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/auth_algo.h b/src/auth_algo.h
index 7202b47..1b0aa01 100644
--- a/src/auth_algo.h
+++ b/src/auth_algo.h
@@ -41,6 +41,7 @@
#include <openssl/hmac.h>
#endif
#include "key_derivation.h"
+#include "encrypted_packet.h"
enum auth_algo_type_enum { aa_unknown, aa_null, aa_sha1 };
typedef enum auth_algo_type_enum auth_algo_type_t;
@@ -52,6 +53,8 @@ struct auth_algo_struct {
};
typedef struct auth_algo_struct auth_algo_t;
+auth_algo_type_t auth_algo_get_type(const char* type);
+u_int32_t auth_algo_get_max_length(const char* type);
int auth_algo_init(auth_algo_t* aa, const char* type);
void auth_algo_close(auth_algo_t* aa);