mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02: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
4 changed files with 540 additions and 534 deletions
|
@ -124,9 +124,9 @@ load_module (const char *name)
|
|||
#endif
|
||||
|
||||
handle = dlopen (name, RTLD_NOW);
|
||||
if (!name)
|
||||
if (!handle)
|
||||
{
|
||||
/*log_error ("error loading module `%s': %s\n", name, dlerror());*/
|
||||
err=dlerror();
|
||||
goto failure;
|
||||
}
|
||||
|
||||
|
@ -134,14 +134,12 @@ load_module (const char *name)
|
|||
if (dlerror ())
|
||||
sym = dlsym (handle, "_idea_get_info");
|
||||
if ((err=dlerror()))
|
||||
{
|
||||
log_info ("invalid module `%s': %s\n", name, err);
|
||||
goto failure;
|
||||
}
|
||||
goto failure;
|
||||
|
||||
return sym;
|
||||
|
||||
failure:
|
||||
log_info ("invalid module `%s': %s\n", name?name:"???", err?err:"???");
|
||||
if (handle)
|
||||
dlclose (handle);
|
||||
#endif /*USE_DYNAMIC_LINKING*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue