1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-14 21:47:19 +02:00

* md.c (string_to_digest_algo): Enable read-write SHA-256 support.

* algorithms.h, Makefile.am, md.c (load_digest_module,
string_to_digest_algo), tiger.c: Drop TIGER/192 support.
This commit is contained in:
David Shaw 2003-09-04 11:53:10 +00:00
parent ff4b6613a9
commit 142ef9b0ba
5 changed files with 11 additions and 948 deletions

View file

@ -96,10 +96,6 @@ load_digest_module (void)
/* We load them in reverse order so that the most
frequently used are the first in the list. */
#ifdef USE_TIGER192
if (!new_list_item (DIGEST_ALGO_TIGER, tiger_get_info))
BUG();
#endif
#ifdef USE_SHA512
if (!new_list_item (DIGEST_ALGO_SHA512, sha512_get_info))
BUG ();
@ -135,8 +131,7 @@ string_to_digest_algo( const char *string )
understand the hashes before we release one that generates
them. - dshaw */
if(!ascii_strcasecmp("sha256",string)
|| !ascii_strcasecmp("sha384",string)
if(!ascii_strcasecmp("sha384",string)
|| !ascii_strcasecmp("sha512",string))
{
log_info(_("digest algorithm `%s' is read-only in this release\n"),
@ -144,12 +139,6 @@ string_to_digest_algo( const char *string )
return 0;
}
#ifdef USE_TIGER192
if(!ascii_strcasecmp("tiger192",string))
log_info(_("WARNING: digest `%s' is not part of OpenPGP. "
"Use at your own risk!\n"),string);
#endif
do {
for(r = digest_list; r; r = r->next )
if( !ascii_strcasecmp( r->name, string ) )