aboutsummaryrefslogtreecommitdiffstats
path: root/g10/mainproc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-01-08 19:18:49 +0000
committerWerner Koch <[email protected]>2010-01-08 19:18:49 +0000
commitbe45bf3d544873ff4bc86496c6ab6c5f16c6a26e (patch)
tree31c443f6d989917ea476143abc4fd5d2ae749faa /g10/mainproc.c
parentFix bug 1146 (diff)
downloadgnupg-be45bf3d544873ff4bc86496c6ab6c5f16c6a26e.tar.gz
gnupg-be45bf3d544873ff4bc86496c6ab6c5f16c6a26e.zip
Add dummu option --passwd for gpg.
Collected changes.
Diffstat (limited to '')
-rw-r--r--g10/mainproc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c
index c3d082c56..8178db2ae 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -361,7 +361,13 @@ proc_pubkey_enc( CTX c, PACKET *pkt )
if( is_status_enabled() ) {
char buf[50];
- sprintf(buf, "%08lX%08lX %d 0",
+ /* FIXME: For ECC support we need to map the OpenPGP algo
+ number to the Libgcrypt definef one. This is due a
+ chicken-egg problem: We need to have code in libgcrypt for
+ a new algorithm so to implement a proposed new algorithm
+ before the IANA will finally assign an OpenPGP
+ indentifier. */
+ snprintf (buf, sizeof buf, "%08lX%08lX %d 0",
(ulong)enc->keyid[0], (ulong)enc->keyid[1], enc->pubkey_algo );
write_status_text( STATUS_ENC_TO, buf );
}