diff options
author | Werner Koch <wk@gnupg.org> | 1998-01-07 21:47:46 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-01-07 21:47:46 +0100 |
commit | 762d3d7197f622296ea5360a73c46c88dcd26308 (patch) | |
tree | cfd34485dc436ef861b4f625d20388f3776c232e /cipher/md.c | |
parent | patch release 0.1.1 (diff) | |
download | gnupg2-762d3d7197f622296ea5360a73c46c88dcd26308.tar.xz gnupg2-762d3d7197f622296ea5360a73c46c88dcd26308.zip |
patchlevel 2
Diffstat (limited to 'cipher/md.c')
-rw-r--r-- | cipher/md.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/cipher/md.c b/cipher/md.c index 71403c8c9..67f5356a8 100644 --- a/cipher/md.c +++ b/cipher/md.c @@ -26,17 +26,11 @@ #include "cipher.h" #include "errors.h" + int md_okay( int algo ) { - switch( algo ) { - case DIGEST_ALGO_MD5: - case DIGEST_ALGO_RMD160: - case DIGEST_ALGO_SHA1: - return 0; - default: - return G10ERR_DIGEST_ALGO; - } + return check_digest_algo( algo ); } |