diff options
author | Martin Willi <martin@strongswan.org> | 2005-11-24 16:22:04 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2005-11-24 16:22:04 +0000 |
commit | 8277be60531af90687cc128df122d5d43272f1f0 (patch) | |
tree | 0edcaa553c5fa1b1e10b64a0a035934ce36ac3af /Source/charon/transforms/hashers/hasher.c | |
parent | 2a1d820155c43a0675352b70b9749cc4ad284529 (diff) | |
download | strongswan-8277be60531af90687cc128df122d5d43272f1f0.tar.bz2 strongswan-8277be60531af90687cc128df122d5d43272f1f0.tar.xz |
- moved algorithm definitions from payloads to corresponding transforms
- cleanup of docs in transforms
Diffstat (limited to 'Source/charon/transforms/hashers/hasher.c')
-rw-r--r-- | Source/charon/transforms/hashers/hasher.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/charon/transforms/hashers/hasher.c b/Source/charon/transforms/hashers/hasher.c index 983ae4bed..e71424ed3 100644 --- a/Source/charon/transforms/hashers/hasher.c +++ b/Source/charon/transforms/hashers/hasher.c @@ -1,7 +1,7 @@ /** * @file hasher.c * - * @brief Generic interface for hash functions + * @brief Generic constructor for hasher_t * */ @@ -26,7 +26,14 @@ #include <transforms/hashers/hasher_sha1.h> #include <transforms/hashers/hasher_md5.h> - +/** + * mappings for hash_algorithm_t + */ +mapping_t hash_algorithm_m[] = { + {HASH_SHA1, "HASH_SHA1"}, + {HASH_MD5, "HASH_MD5"}, + {MAPPING_END, NULL} +}; /* * Described in header |