trace back crypto algorithms to the plugins that registered them

This commit is contained in:
Andreas Steffen
2010-12-18 16:31:12 +01:00
parent ae09bc62bc
commit 5932f41fcc
30 changed files with 587 additions and 400 deletions
+3 -1
View File
@@ -18,6 +18,8 @@
#include <library.h>
#include "md5_hasher.h"
static const char *plugin_name = "md5";
typedef struct private_md5_plugin_t private_md5_plugin_t;
/**
@@ -54,7 +56,7 @@ plugin_t *md5_plugin_create()
},
);
lib->crypto->add_hasher(lib->crypto, HASH_MD5,
lib->crypto->add_hasher(lib->crypto, HASH_MD5, plugin_name,
(hasher_constructor_t)md5_hasher_create);
return &this->public.plugin;