aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c6
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 */