aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/gpgsm.c')
-rw-r--r--sm/gpgsm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c
index f6cf4aeef..78d1a435f 100644
--- a/sm/gpgsm.c
+++ b/sm/gpgsm.c
@@ -828,6 +828,7 @@ main ( int argc, char **argv)
gcry_control (GCRYCTL_RESUME_SECMEM_WARN);
set_debug ();
+
/* FIXME: should set filenames of libgcrypt explicitly
* gpg_opt_homedir = opt.homedir; */
@@ -863,6 +864,9 @@ main ( int argc, char **argv)
xfree(p);
}
+ if (opt.armor)
+ ctrl.create_pem = 1;
+
if (!cmd && opt.fingerprint && !with_fpr)
set_cmd (&cmd, aListKeys);