mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
* tiger.c: Use the U64_C macro instead of LL.
* md.c (string_to_digest_algo): Give a warning about TIGER192 not being part of OpenPGP. * idea-stub.c (load_module): Catch an error if the idea module file is unloadable for some reason (unreadable, bad permissions, etc.)
This commit is contained in:
parent
020ace9330
commit
7df1d684d9
@ -1,3 +1,14 @@
|
|||||||
|
2003-05-13 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* tiger.c: Use the U64_C macro instead of LL.
|
||||||
|
|
||||||
|
* md.c (string_to_digest_algo): Give a warning about TIGER192 not
|
||||||
|
being part of OpenPGP.
|
||||||
|
|
||||||
|
* idea-stub.c (load_module): Catch an error if the idea module
|
||||||
|
file is unloadable for some reason (unreadable, bad permissions,
|
||||||
|
etc.)
|
||||||
|
|
||||||
2003-05-09 David Shaw <dshaw@jabberwocky.com>
|
2003-05-09 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* sha512.c: Use the U64_C() macro rather than blindly suffixing
|
* sha512.c: Use the U64_C() macro rather than blindly suffixing
|
||||||
|
@ -124,9 +124,9 @@ load_module (const char *name)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
handle = dlopen (name, RTLD_NOW);
|
handle = dlopen (name, RTLD_NOW);
|
||||||
if (!name)
|
if (!handle)
|
||||||
{
|
{
|
||||||
/*log_error ("error loading module `%s': %s\n", name, dlerror());*/
|
err=dlerror();
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -134,14 +134,12 @@ load_module (const char *name)
|
|||||||
if (dlerror ())
|
if (dlerror ())
|
||||||
sym = dlsym (handle, "_idea_get_info");
|
sym = dlsym (handle, "_idea_get_info");
|
||||||
if ((err=dlerror()))
|
if ((err=dlerror()))
|
||||||
{
|
|
||||||
log_info ("invalid module `%s': %s\n", name, err);
|
|
||||||
goto failure;
|
goto failure;
|
||||||
}
|
|
||||||
|
|
||||||
return sym;
|
return sym;
|
||||||
|
|
||||||
failure:
|
failure:
|
||||||
|
log_info ("invalid module `%s': %s\n", name?name:"???", err?err:"???");
|
||||||
if (handle)
|
if (handle)
|
||||||
dlclose (handle);
|
dlclose (handle);
|
||||||
#endif /*USE_DYNAMIC_LINKING*/
|
#endif /*USE_DYNAMIC_LINKING*/
|
||||||
|
@ -142,6 +142,12 @@ string_to_digest_algo( const char *string )
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_TIGER
|
||||||
|
if(!ascii_strcasecmp("tiger192",string))
|
||||||
|
log_info(_("WARNING: digest `%s' is not part of OpenPGP. "
|
||||||
|
"Use at your own risk!\n"),string);
|
||||||
|
#endif
|
||||||
|
|
||||||
do {
|
do {
|
||||||
for(r = digest_list; r; r = r->next )
|
for(r = digest_list; r; r = r->next )
|
||||||
if( !ascii_strcasecmp( r->name, string ) )
|
if( !ascii_strcasecmp( r->name, string ) )
|
||||||
|
1043
cipher/tiger.c
1043
cipher/tiger.c
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user