diff options
| author | David Shaw <[email protected]> | 2003-05-15 05:29:05 +0000 |
|---|---|---|
| committer | David Shaw <[email protected]> | 2003-05-15 05:29:05 +0000 |
| commit | 0048ebcbaeb754a3920cfe6ee01f16e96a54b328 (patch) | |
| tree | 3c8699061e8549cf8efdf2b2be789ec072d2679f /cipher/idea-stub.c | |
| parent | * types.h: Add initializer macros for 64-bit unsigned type. (diff) | |
| download | gnupg-0048ebcbaeb754a3920cfe6ee01f16e96a54b328.tar.gz gnupg-0048ebcbaeb754a3920cfe6ee01f16e96a54b328.zip | |
* cipher.c (setup_cipher_table): #ifdef IDEA.
* random.c (fast_random_poll): Only use times() if we HAVE_TIMES.
* sha512.c, tiger.c: Use the U64_C() macro to specify 64-bit constants.
U64_C is defined in include/types.h and uses the correct suffix depending
on the underlying type of u64.
* idea-stub.c (load_module): Catch an error if the idea module file is
unloadable for some reason (unreadable, bad permissions, etc.)
* md.c (string_to_digest_algo): Give a warning about TIGER192 not being
part of OpenPGP.
Diffstat (limited to 'cipher/idea-stub.c')
| -rw-r--r-- | cipher/idea-stub.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cipher/idea-stub.c b/cipher/idea-stub.c index 9dd0ced30..1f40b18d7 100644 --- a/cipher/idea-stub.c +++ b/cipher/idea-stub.c @@ -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*/ |
