diff options
author | Werner Koch <[email protected]> | 2002-09-03 14:53:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-09-03 14:53:53 +0000 |
commit | 94a917356c9767a01062906897df33a686ca2f32 (patch) | |
tree | 48228d59a5d44381af5bf0c60f98266d1ae69cc9 /sm/gpgsm.c | |
parent | * gnupg.7: New mini man page. (diff) | |
download | gnupg-94a917356c9767a01062906897df33a686ca2f32.tar.gz gnupg-94a917356c9767a01062906897df33a686ca2f32.zip |
* gpgsm.c (main): Disable the internal libgcrypt locking.
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r-- | sm/gpgsm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c index cffb17f5c..bfcdeb741 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -74,7 +74,7 @@ enum cmd_and_opt_values { aSendKeys, aRecvKeys, aExport, - aCheckKeys, + aCheckKeys, /* nyi */ aServer, aLearnCard, @@ -606,6 +606,10 @@ main ( int argc, char **argv) /* trap_unaligned ();*/ set_strusage (my_strusage); gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN); + /* We don't need any locking in libgcrypt unless we use any kind of + threading. */ + gcry_control (GCRYCTL_DISABLE_INTERNAL_LOCKING); + /* Please note that we may running SUID(ROOT), so be very CAREFUL when adding any stuff between here and the call to secmem_init() somewhere after the option parsing */ |