aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-01-29 17:06:15 +0000
committerWerner Koch <[email protected]>2025-01-29 17:06:15 +0000
commit159e801043de479d9899fccb07a79fbbcc76e751 (patch)
treecc86421520a3efe5d37925aee1682ea5bfd33aa8 /sm/gpgsm.h
parentgpgsm: Allow CSR generation with an unprotected key. (diff)
downloadgnupg-159e801043de479d9899fccb07a79fbbcc76e751.tar.gz
gnupg-159e801043de479d9899fccb07a79fbbcc76e751.zip
gpgsm: Allow unattended PKCS#12 export without passphrase.
* sm/gpgsm.c (oNoProtection): New. (opts): Add "--no-protection". (main): PArse it. * sm/gpgsm.h (struct server_control_s): Add field no_protection. * sm/server.c (option_handler): Add option "no-protection". (reset_notify): Clear option. * sm/export.c (export_p12): Use empty passphrase if option is set.
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index be5e79c9a..23cba59e1 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -284,6 +284,8 @@ struct server_control_s
* progress info and to decide on how to allocate buffers. */
uint64_t input_size_hint;
+ int no_protection; /* No passphrase for PKCS#12 export. */
+
int create_base64; /* Create base64 encoded output */
int create_pem; /* create PEM output */
const char *pem_name; /* PEM name to use */