reintegrated eap-radius branch into trunk

This commit is contained in:
Martin Willi
2009-03-24 10:24:58 +00:00
parent 623bca407b
commit 4a6b84a934
19 changed files with 1815 additions and 3 deletions
@@ -74,6 +74,8 @@ plugin_t *plugin_create()
(signer_constructor_t)hmac_signer_create);
lib->crypto->add_signer(lib->crypto, AUTH_HMAC_MD5_96,
(signer_constructor_t)hmac_signer_create);
lib->crypto->add_signer(lib->crypto, AUTH_HMAC_MD5_128,
(signer_constructor_t)hmac_signer_create);
lib->crypto->add_signer(lib->crypto, AUTH_HMAC_SHA2_384_192,
(signer_constructor_t)hmac_signer_create);
lib->crypto->add_signer(lib->crypto, AUTH_HMAC_SHA2_512_256,
@@ -159,6 +159,10 @@ hmac_signer_t *hmac_signer_create(integrity_algorithm_t algo)
hash = HASH_MD5;
trunc = 12;
break;
case AUTH_HMAC_MD5_128:
hash = HASH_MD5;
trunc = 16;
break;
case AUTH_HMAC_SHA2_256_128:
hash = HASH_SHA256;
trunc = 16;