mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-13 03:40:05 +01:00
patch 1.patch
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@109 36d66b0a-2a48-0410-832c-cd162a569da5
This commit is contained in:
@@ -8,18 +8,8 @@
|
||||
|
||||
extern struct hash_backend hash_gcrypt_backend;
|
||||
|
||||
#ifdef USE_PLUGINS
|
||||
static void init_plugins(void)
|
||||
{
|
||||
}
|
||||
#else /* USE_PLUGINS */
|
||||
# define init_plugins() do { } while(0)
|
||||
#endif /* USE_PLUGINS */
|
||||
|
||||
static struct hash_backend *hash_backends[] = {
|
||||
#ifdef BUILTIN_GCRYPT
|
||||
&hash_gcrypt_backend,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
@@ -27,8 +17,6 @@ struct hash_backend *get_hash_backend(const char *name)
|
||||
{
|
||||
struct hash_backend **backend;
|
||||
|
||||
init_plugins();
|
||||
|
||||
for(backend = hash_backends; *backend; backend++)
|
||||
if (!name || strcmp(name, (*backend)->name) == 0)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user