From: Simon Josefsson Date: Thu, 27 Oct 2005 14:26:20 +0000 (+0000) Subject: Add MD2. X-Git-Tag: gnutls_1_2_9~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4dd30bee10da7a6ab66fdda81e16ca503be7fc4e;p=thirdparty%2Fgnutls.git Add MD2. --- diff --git a/lib/gnutls_hash_int.c b/lib/gnutls_hash_int.c index c60fe215de..6552cc3ad4 100644 --- a/lib/gnutls_hash_int.c +++ b/lib/gnutls_hash_int.c @@ -53,6 +53,9 @@ GNUTLS_HASH_HANDLE _gnutls_hash_init(gnutls_mac_algorithm_t algorithm) case GNUTLS_MAC_RMD160: result = gc_hash_open(GC_RMD160, 0, &ret->handle); break; + case GNUTLS_MAC_MD2: + result = gc_hash_open(GC_MD2, 0, &ret->handle); + break; default: gnutls_assert(); result = -1; @@ -81,6 +84,9 @@ int _gnutls_hash_get_algo_len(gnutls_mac_algorithm_t algorithm) case GNUTLS_MAC_RMD160: ret = gc_hash_digest_length(GC_RMD160); break; + case GNUTLS_MAC_MD2: + ret = gc_hash_digest_length(GC_MD2); + break; default: ret = 0; break;