aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/sha1/sha1_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-08-28 10:57:24 +0000
committerMartin Willi <martin@strongswan.org>2008-08-28 10:57:24 +0000
commitf1b014b9a33990d08fb16871092c2a050da77517 (patch)
tree5c4539fabfd7f1224bc205095d2b942fdce2029d /src/libstrongswan/plugins/sha1/sha1_plugin.c
parent948220863343ab9a53d61294692deab84b03969a (diff)
downloadstrongswan-f1b014b9a33990d08fb16871092c2a050da77517.tar.bz2
strongswan-f1b014b9a33990d08fb16871092c2a050da77517.tar.xz
separated sha1_prf implementation from sha1_hasher
Diffstat (limited to 'src/libstrongswan/plugins/sha1/sha1_plugin.c')
-rw-r--r--src/libstrongswan/plugins/sha1/sha1_plugin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstrongswan/plugins/sha1/sha1_plugin.c b/src/libstrongswan/plugins/sha1/sha1_plugin.c
index 391664f5e..97cd86819 100644
--- a/src/libstrongswan/plugins/sha1/sha1_plugin.c
+++ b/src/libstrongswan/plugins/sha1/sha1_plugin.c
@@ -19,6 +19,7 @@
#include <library.h>
#include "sha1_hasher.h"
+#include "sha1_prf.h"
typedef struct private_sha1_plugin_t private_sha1_plugin_t;
@@ -41,7 +42,7 @@ static void destroy(private_sha1_plugin_t *this)
lib->crypto->remove_hasher(lib->crypto,
(hasher_constructor_t)sha1_hasher_create);
lib->crypto->remove_prf(lib->crypto,
- (prf_constructor_t)sha1_keyed_prf_create);
+ (prf_constructor_t)sha1_prf_create);
free(this);
}
@@ -57,7 +58,7 @@ plugin_t *plugin_create()
lib->crypto->add_hasher(lib->crypto, HASH_SHA1,
(hasher_constructor_t)sha1_hasher_create);
lib->crypto->add_prf(lib->crypto, PRF_KEYED_SHA1,
- (prf_constructor_t)sha1_keyed_prf_create);
+ (prf_constructor_t)sha1_prf_create);
return &this->public.plugin;
}