summaryrefslogtreecommitdiffstats
path: root/cipher/md.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-01-07 21:47:46 +0100
committerWerner Koch <wk@gnupg.org>1998-01-07 21:47:46 +0100
commit762d3d7197f622296ea5360a73c46c88dcd26308 (patch)
treecfd34485dc436ef861b4f625d20388f3776c232e /cipher/md.c
parentpatch release 0.1.1 (diff)
downloadgnupg2-762d3d7197f622296ea5360a73c46c88dcd26308.tar.xz
gnupg2-762d3d7197f622296ea5360a73c46c88dcd26308.zip
patchlevel 2
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c10
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 );
}