diff options
Diffstat (limited to 'cipher/md5.c')
-rw-r--r-- | cipher/md5.c | 64 |
1 files changed, 2 insertions, 62 deletions
diff --git a/cipher/md5.c b/cipher/md5.c index ef6886eb4..ca605b6fd 100644 --- a/cipher/md5.c +++ b/cipher/md5.c @@ -36,7 +36,7 @@ #include <assert.h> #include "util.h" #include "memory.h" -#include "dynload.h" +#include "algorithms.h" #include "bithelp.h" @@ -337,7 +337,7 @@ md5_read( MD5_CONTEXT *hd ) * Returns: A pointer to string describing the algorithm or NULL if * the ALGO is invalid. */ -static const char * +const char * md5_get_info( int algo, size_t *contextsize, byte **r_asnoid, int *r_asnlen, int *r_mdlen, void (**r_init)( void *c ), @@ -365,63 +365,3 @@ md5_get_info( int algo, size_t *contextsize, return "MD5"; } - -#ifndef IS_MODULE -static -#endif -const char * const gnupgext_version = "MD5 ($Revision$)"; - -static struct { - int class; - int version; - int value; - void (*func)(void); -} func_table[] = { - { 10, 1, 0, (void(*)(void))md5_get_info }, - { 11, 1, 1 }, -}; - - -#ifndef IS_MODULE -static -#endif -void * -gnupgext_enum_func( int what, int *sequence, int *class, int *vers ) -{ - void *ret; - int i = *sequence; - - do { - if( i >= DIM(func_table) || i < 0 ) - return NULL; - *class = func_table[i].class; - *vers = func_table[i].version; - switch( *class ) { - case 11: case 21: case 31: ret = &func_table[i].value; break; -#ifndef __riscos__ - default: ret = func_table[i].func; break; -#else /* __riscos__ */ - default: ret = (void *) func_table[i].func; break; -#endif /* __riscos__ */ - } - i++; - } while( what && what != *class ); - - *sequence = i; - return ret; -} - - - - -#ifndef IS_MODULE -void -md5_constructor(void) -{ - register_internal_cipher_extension( gnupgext_version, gnupgext_enum_func ); -} -#endif - - - -/* end of file */ |