[svn] GnuPG - r4411 - in trunk: . doc g10 kbx scd sm
svn author wk
cvs at cvs.gnupg.org
Tue Jan 30 21:16:33 CET 2007
Author: wk
Date: 2007-01-30 21:16:28 +0100 (Tue, 30 Jan 2007)
New Revision: 4411
Modified:
trunk/AUTHORS
trunk/NEWS
trunk/THANKS
trunk/doc/ChangeLog
trunk/doc/DETAILS
trunk/doc/com-certs.pem
trunk/doc/gpg.texi
trunk/g10/ChangeLog
trunk/g10/call-agent.c
trunk/g10/gpg.c
trunk/g10/main.h
trunk/g10/misc.c
trunk/g10/pkclist.c
trunk/g10/sign.c
trunk/g10/status.c
trunk/g10/status.h
trunk/g10/textfilter.c
trunk/kbx/ChangeLog
trunk/kbx/Makefile.am
trunk/scd/ChangeLog
trunk/scd/Makefile.am
trunk/sm/ChangeLog
trunk/sm/Makefile.am
Log:
Added LIBINTL to more Makefile targets.
doc/
* com-certs.pem: Added the current root certifcates of D-Trust and
S-Trust.
g10/
* status.c (write_status_begin_signing): New.
* sign.c (sign_file, sign_symencrypt_file): Call it.
* textfilter.c (copy_clearsig_text): Call it.
* call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
required.
* gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
warning.
* misc.c (obsolete_option): New.
Modified: trunk/AUTHORS
===================================================================
--- trunk/AUTHORS 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/AUTHORS 2007-01-30 20:16:28 UTC (rev 4411)
@@ -17,6 +17,8 @@
Per Tunedal <per at clipanish.com> Translations [sv]
Daniel Nylander <po at danielnylander.se> Translations [sv]
+Daiki Ueno <ueno at unixuser.org> Assigns Past and Future Changes.
+
David Shaw <dshaw at jabberwocky.com> Assigns past and future changes.
(all in keyserver/,
a lot of changes in g10/ see the ChangeLog,
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/NEWS 2007-01-30 20:16:28 UTC (rev 4411)
@@ -13,6 +13,8 @@
* A warning is displayed if a new passphrase is too short. New
option --min-passphrase-len defaults to 8.
+ * The status code BEGIN_SIGNING now show the used hash algorithm.
+
Noteworthy changes in version 2.0.1 (2006-11-28)
------------------------------------------------
Modified: trunk/THANKS
===================================================================
--- trunk/THANKS 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/THANKS 2007-01-30 20:16:28 UTC (rev 4411)
@@ -18,7 +18,8 @@
Ariel T Glenn ariel at columbia.edu
ARIGA Seiji ariga at os.rim.or.jp
Bernhard Herzog bh at intevation.de
-Bernhard Reiter bernhard de intevation.de
+Bernhard Reiter bernhard at intevation.de
+Billy Halsey bshalsey at paxoo.com
Bob Dunlop bob at xyzzy.org.uk
Bob Mathews bobmathews at mindspring.com
Bodo Moeller Bodo_Moeller at public.uni-hamburg.de
Modified: trunk/doc/ChangeLog
===================================================================
--- trunk/doc/ChangeLog 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/doc/ChangeLog 2007-01-30 20:16:28 UTC (rev 4411)
@@ -1,3 +1,8 @@
+2007-01-30 Werner Koch <wk at g10code.com>
+
+ * com-certs.pem: Added the current root certifcates of D-Trust and
+ S-Trust.
+
2007-01-18 David Shaw <dshaw at jabberwocky.com>
* gpg.texi, specify-user-id.texi: Only some of the mentions of
Modified: trunk/doc/DETAILS
===================================================================
--- trunk/doc/DETAILS 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/doc/DETAILS 2007-01-30 20:16:28 UTC (rev 4411)
@@ -316,7 +316,7 @@
TRUST_ULTIMATE
For good signatures one of these status lines are emitted
to indicate how trustworthy the signature is. The error token
- values are currently only emiited by gpgsm.
+ values are currently only emitted by gpgsm.
PKA_TRUST_GOOD <mailbox>
PKA_TRUST_BAD <mailbox>
Modified: trunk/doc/com-certs.pem
===================================================================
--- trunk/doc/com-certs.pem 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/doc/com-certs.pem 2007-01-30 20:16:28 UTC (rev 4411)
@@ -197,3 +197,148 @@
Tl8DK+/aKp4SwVhRJZlWxenHzkjWynsUXBUv878gizllRpA7265REyHQki4NnxAi
OGxEVGe/NbGeU88Pgnk7alhtdA/Ty8/WX9a3U/0G4pLaJppxGSm+ypQZ0XOY
-----END CERTIFICATE-----
+
+
+
+Issuer ...: /CN=D-TRUST Qualified Root CA 1 2006:PN/O=D-Trust GmbH/C=DE
+Serial ...: 00B95F
+Subject ..: /CN=D-TRUST Qualified Root CA 1 2006:PN/O=D-Trust GmbH/C=DE
+ aka ..: info at d-trust.net
+ aka ..: (uri http://www.d-trust.net)
+
+-----BEGIN CERTIFICATE-----
+MIIFCjCCA/KgAwIBAgIDALlfMA0GCSqGSIb3DQEBBQUAMFIxCzAJBgNVBAYTAkRF
+MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxLDAqBgNVBAMMI0QtVFJVU1QgUXVhbGlm
+aWVkIFJvb3QgQ0EgMSAyMDA2OlBOMB4XDTA2MDQyNzEyNDA1NFoXDTExMDQyNzEy
+NDA1NFowUjELMAkGA1UEBhMCREUxFTATBgNVBAoMDEQtVHJ1c3QgR21iSDEsMCoG
+A1UEAwwjRC1UUlVTVCBRdWFsaWZpZWQgUm9vdCBDQSAxIDIwMDY6UE4wggEkMA0G
+CSqGSIb3DQEBAQUAA4IBEQAwggEMAoIBAQCPACqp8H/KTbDBUM8BTiRzsfCJmN5G
+Uxv8x3wsYLMtZ8meq04vEun2OneNeKZ2LxJy3UchUWitYP9pLPt9M8yt0pyuOXOQ
+5r2RPAM46OlfStoPbZ+lCxpZbNcQGLM+/OcQU9GoCNWWkDSctwIN8T4mUf7vSzuT
+jM4n5NHW7Y8bANhH7lh2fwkfIk7PxsxFw9amptlqzDqbBPz8/SdBUFt0G8t52Niw
+lcYHWDV2YH4Qs1SAxOsyG0O8hpYKiKIwRHxPu5ZD3bMgDJXA3d+9zXlrLlmL0YFC
+tvlPxmvqUhmMsL4vGEj/xWivULCTVOz6KcJ9edWwK9JxyO/KmGyDLwKxAgUApBVt
+/aOCAeUwggHhMA8GA1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
+
+Issuer ...: /CN=D-TRUST Qualified Root CA 2 2006:PN/O=D-Trust GmbH/C=DE
+Serial ...: 00B960
+Subject ..: /CN=D-TRUST Qualified Root CA 2 2006:PN/O=D-Trust GmbH/C=DE
+ aka ..: info at d-trust.net
+ aka ..: (uri http://www.d-trust.net)
+
+-----BEGIN CERTIFICATE-----
+MIIFBjCCA+6gAwIBAgIDALlgMA0GCSqGSIb3DQEBBQUAMFIxCzAJBgNVBAYTAkRF
+MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxLDAqBgNVBAMMI0QtVFJVU1QgUXVhbGlm
+aWVkIFJvb3QgQ0EgMiAyMDA2OlBOMB4XDTA2MDQyNzEyNDA1NFoXDTExMDQyNzEy
+NDA1NFowUjELMAkGA1UEBhMCREUxFTATBgNVBAoMDEQtVHJ1c3QgR21iSDEsMCoG
+A1UEAwwjRC1UUlVTVCBRdWFsaWZpZWQgUm9vdCBDQSAyIDIwMDY6UE4wggEkMA0G
+CSqGSIb3DQEBAQUAA4IBEQAwggEMAoIBAQC9p9EZM645WSti4m3Lp/m5Cu2PCeAf
+DYMsN2UQab5SAD94wc0xB68rhD0QiyXT1bhqnHKGhdsmmNwVbFLWyFWVc69+5pbx
+jkEa1Z5oYbftpLZlqblas/iPG1C546c/O5JUHehrpyJziTaIqvDm0hMCarEGrd4i
+hdwP7XsLNLeHFVdpVMWKUIJjUud18Wyr6MVRGs85YTme2gPki8JZMjeOteTA8dnY
+unohiJM1rs8YQiYgIfQJV5oBd7OWZQLSuoh5tddYnP4KDFZUCCsC1OkBD+MnVlcv
+IEfrDDuWdvFgOdS8FB5l4E3D0eYPpn536EDpWeGuCnn8joQPdiMwwGL7AgUAuaHl
+M6OCAeEwggHdMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFILMyG0qJl9Aqmsa
+DhPJE4d+Xp/JMDMGCCsGAQUFBwEBBCcwJTAjBggrBgEFBQcwAYYXaHR0cDovL29j
+c3AuZC10cnVzdC5uZXQwFwYDVR0gBBAwDjAMBgorBgEEAaU0Ah4BMDMGA1UdEQQs
+MCqBEGluZm9AZC10cnVzdC5uZXSGFmh0dHA6Ly93d3cuZC10cnVzdC5uZXQwGAYI
+KwYBBQUHAQMEDDAKMAgGBgQAjkYBATAOBgNVHQ8BAf8EBAMCAQYwgf0GA1UdHwSB
+9TCB8jCB76CB7KCB6YaBpWxkYXA6Ly9kaXJlY3RvcnkuZC10cnVzdC5uZXQvQ049
+RC1UUlVTVCUyMFF1YWxpZmllZCUyMFJvb3QlMjBDQSUyMDIlMjAyMDA2JTNBUE4s
+Tz1ELVRydXN0JTIwR21iSCxDPURFP2NlcnRpZmljYXRlcmV2b2NhdGlvbmxpc3Q/
+YmFzZT9vYmplY3RDbGFzcz1jcmxEaXN0cmlidXRpb25Qb2ludIY/aHR0cDovL3d3
+dy5kLXRydXN0Lm5ldC9jcmwvZC10cnVzdF9xdWFsaWZpZWRfcm9vdF9jYV8yXzIw
+MDYuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQB/TeSQASSUVjLVpTMB+S2bEYZWL04N
+5UO5sIdV5MQFxmbmQNam4odnkOx/GjHy0uuf14Pz7lztlLh4EMvEZbvoQ8wRsrrl
+vMjWBUSnhTMPhohj4gUCEJDBq50qi0057Jos9DF4iLaFgiWBER+FeSHD8uEy6WGG
+UrQ9fw8wRa+CRUeZldtZ25VSR++wxBuX3bkF/hRBuSk9PzT6jZojZDWKsqhPGo0W
+dK4V81hS4Zri3b3gSD/3iOAJ4EO8jdyeSVomw/u1UOapVFnWhpN7H6Nwekij66eO
+4WNzbeTNgJtkdOlzW2AcsWe3mS43BE286z7l/DzDs8JK36va/TRHb29p
+-----END CERTIFICATE-----
+
+
+Issuer ...: /CN=S-TRUST Qualified Root CA 2006-001:PN
+ /O=Deutscher Sparkassen Verlag GmbH/L=Stuttgart
+ /ST=Baden-Wuerttemberg (BW)/C=DE
+Serial ...: 00DF749F80AA51F0EDC0CB1FC183E97EE2
+Subject ..: /CN=S-TRU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DB+MBIGA1UdEwEB/wQIMAYBAf8C
+AQEwDgYDVR0PAQH/BAQDAgEGMBgGCCsGAQUFBwEDBAwwCjAIBgYEAI5GAQEwHQYD
+VR0OBBYEFKhXJN3CR/Jkirm68N+VHxcd09zBMB8GA1UdIwQYMBaAFKhXJN3CR/Jk
+irm68N+VHxcd09zBMA0GCSqGSIb3DQEBBQUAA4IBAQBB8UGGU179RK9v5SglLn8m
+AdBrwG5B4x0nlI3Ayj+GuP9R8ALcMEBwcFgSZTav7N8ERKa8VlCRNria7Fvf3kOu
++f67smpShBvEkrHy+ThvezBUtLfSSd1HzvaPnfwu86DMVnTIOkEcl0KLrpc/ZjEt
+u81iHuiHBemf6gWdTCApiJ+CN4tARi3irvWcjhz/IIcA/ZwAaCW22Z1ysDklCIPS
+9OnX9ki1f73PR+kdo4G7Dfo7TbuvV5Kzeh54sZ77A5utdvKer4ZHBmn9CGmk4VeI
+BWdFlE7Fispzm+jZCduF0TcazvP/tYontx71GQnHRwLfiY4xnuzXEoSNXoaHzhzO
+-----END CERTIFICATE-----
+
+Issuer ...: /CN=S-TRUST Qualified Root CA 2007-001:PN
+ /O=Deutscher Sparkassen Verlag GmbH/L=Stuttgart
+ /ST=Baden-Wuerttemberg (BW)/C=DE
+Serial ...: 00BC098E0402E92956B8D7DE74977E26F7
+Subject ..: /CN=S-TRUST Qualified Root CA 2007-001:PN
+ /O=Deutscher Sparkassen Verlag GmbH/L=Stuttgart
+ /ST=Baden-Wuerttemberg (BW)/C=DE
+
+# Currently disabled because latest SVN versions of libgcrypt and
+# libksba a required to use this certificate.
+#-----BEGIN CERTIFICATE-----
+#MIIESzCCAzOgAwIBAgIRALwJjgQC6SlWuNfedJd+JvcwDQYJKoZIhvcNAQELBQAw
+#gZ4xCzAJBgNVBAYTAkRFMSAwHgYDVQQIExdCYWRlbi1XdWVydHRlbWJlcmcgKEJX
+#KTESMBAGA1UEBxMJU3R1dHRnYXJ0MSkwJwYDVQQKEyBEZXV0c2NoZXIgU3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3rmen/8EqQJa0rsPD
+#CiB20ilLb1CmF8/SViJ26C+K0ayzk8s2v7S/m7/Tx9Dgd2PXWwy2XjeGG/2SkISH
+#5CtSjbm8U+xTh5SQMgK1MX/bDiNJebDOO0N2lxAjtcGmw7K6OTWS7KnFfjzv6fKK
+#L7Ed2Gpd2gBkbuJVe/wX2mDP2P4rpcCEkXrDoWbi9WWc+eP5fCgE4Nj7/VhnbPf6
+#DJCvmUG571uf1oukFaoeeyzpw2q28Ly1KR8DNPw+B/3PzJUIjXYzPGyUjv3aPew=
+#-----END CERTIFICATE-----
Modified: trunk/doc/gpg.texi
===================================================================
--- trunk/doc/gpg.texi 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/doc/gpg.texi 2007-01-30 20:16:28 UTC (rev 4411)
@@ -1455,9 +1455,15 @@
@end ifset
@item --gpg-agent-info
+ at ifclear gpgone
+This is dummy option. It has no effect when used with @command{gpg2}.
+ at end ifclear
+ at ifset gpgone
Override the value of the environment variable
@samp{GPG_AGENT_INFO}. This is only used when @option{--use-agent} has
-been given
+been given. Given that this option is not anymore used by
+ at command{gpg2}, it should be avoided if possible.
+ at end gpgone
@item --lock-once
Lock the databases the first time a lock is requested
Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/ChangeLog 2007-01-30 20:16:28 UTC (rev 4411)
@@ -1,3 +1,20 @@
+2007-01-30 Werner Koch <wk at g10code.com>
+
+ * status.c (write_status_begin_signing): New.
+ * sign.c (sign_file, sign_symencrypt_file): Call it.
+ * textfilter.c (copy_clearsig_text): Call it.
+
+ * call-agent.c (agent_scd_pksign): Pass --hash-rmd160 to SCD if
+ required.
+
+ * gpg.c (main): Let --no-use-agent and --gpg-agent-info print a
+ warning.
+ * misc.c (obsolete_option): New.
+
+2007-01-29 Werner Koch <wk at g10code.com>
+
+ * pkclist.c (do_we_trust_pre): Issue a user-id-hint status code.
+
2007-01-15 Werner Koch <wk at g10code.com>
* parse-packet.c (read_protected_v3_mpi): Make sure to stop
Modified: trunk/g10/call-agent.c
===================================================================
--- trunk/g10/call-agent.c 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/call-agent.c 2007-01-30 20:16:28 UTC (rev 4411)
@@ -668,7 +668,9 @@
snprintf (line, DIM(line)-1, "SCD PKAUTH %s", serialno);
else
#endif
- snprintf (line, DIM(line)-1, "SCD PKSIGN %s", serialno);
+ snprintf (line, DIM(line)-1, "SCD PKSIGN %s%s",
+ hashalgo == GCRY_MD_RMD160? "--hash=rmd160 " : "",
+ serialno);
line[DIM(line)-1] = 0;
rc = assuan_transact (agent_ctx, line, membuf_data_cb, &data,
NULL, NULL, NULL, NULL);
Modified: trunk/g10/gpg.c
===================================================================
--- trunk/g10/gpg.c 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/gpg.c 2007-01-30 20:16:28 UTC (rev 4411)
@@ -2134,10 +2134,20 @@
opt.list_options|=LIST_SHOW_UNUSABLE_SUBKEYS;
break;
- case oBatch: opt.batch = 1; nogreeting = 1; break;
+ case oBatch:
+ opt.batch = 1;
+ nogreeting = 1;
+ break;
+
case oUseAgent: /* Dummy. */
- case oNoUseAgent: /* Dummy. */ break;
- case oGpgAgentInfo: opt.gpg_agent_info = pargs.r.ret_str; break;
+ break;
+ case oNoUseAgent:
+ obsolete_option (configname, configlineno, "--no-use-agent");
+ break;
+ case oGpgAgentInfo:
+ obsolete_option (configname, configlineno, "--gpg-agent-info");
+ break;
+
case oAnswerYes: opt.answer_yes = 1; break;
case oAnswerNo: opt.answer_no = 1; break;
case oKeyring: append_to_strlist( &nrings, pargs.r.ret_str); break;
Modified: trunk/g10/main.h
===================================================================
--- trunk/g10/main.h 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/main.h 2007-01-30 20:16:28 UTC (rev 4411)
@@ -105,6 +105,8 @@
void deprecated_warning(const char *configname,unsigned int configlineno,
const char *option,const char *repl1,const char *repl2);
void deprecated_command (const char *name);
+void obsolete_option (const char *configname, unsigned int configlineno,
+ const char *name);
int string_to_cipher_algo (const char *string);
int string_to_digest_algo (const char *string);
Modified: trunk/g10/misc.c
===================================================================
--- trunk/g10/misc.c 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/misc.c 2007-01-30 20:16:28 UTC (rev 4411)
@@ -469,6 +469,10 @@
int
openpgp_md_test_algo( int algo )
{
+ /* Note: If the list of actual supported OpenPGP algorithms changes,
+ make sure that our hard coded values at
+ print_status_begin_signing() gets updated. */
+
if (algo < 0 || algo > 110)
return gpg_error (GPG_ERR_DIGEST_ALGO);
return gcry_md_test_algo (algo);
@@ -737,6 +741,19 @@
}
+void
+obsolete_option (const char *configname, unsigned int configlineno,
+ const char *name)
+{
+ if(configname)
+ log_info (_("%s:%u: obsolete option \"%s\" - it has no effect\n"),
+ configname, configlineno, name);
+ else
+ log_info (_("WARNING: \"%s\" is an obsolete option - it has no effect\n"),
+ name);
+}
+
+
/*
* Wrapper around gcry_cipher_map_name to provide a fallback using the
* "Sn" syntax as used by the preference strings.
Modified: trunk/g10/pkclist.c
===================================================================
--- trunk/g10/pkclist.c 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/pkclist.c 2007-01-30 20:16:28 UTC (rev 4411)
@@ -464,6 +464,18 @@
tty_printf("\n");
+
+ if (is_status_enabled ())
+ {
+ u32 kid[2];
+ char *hint_str;
+
+ keyid_from_pk (pk, kid);
+ hint_str = get_long_user_id_string ( kid );
+ write_status_text ( STATUS_USERID_HINT, hint_str );
+ xfree (hint_str);
+ }
+
if( cpr_get_answer_is_yes("untrusted_key.override",
_("Use this key anyway? (y/N) ")) )
rc = 1;
Modified: trunk/g10/sign.c
===================================================================
--- trunk/g10/sign.c 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/sign.c 2007-01-30 20:16:28 UTC (rev 4411)
@@ -503,6 +503,7 @@
}
+
static void
print_status_sig_created ( PKT_secret_key *sk, PKT_signature *sig, int what )
{
@@ -983,7 +984,7 @@
goto leave;
}
- write_status (STATUS_BEGIN_SIGNING);
+ write_status_begin_signing (mfx.md);
/* Setup the inner packet. */
if( detached ) {
@@ -1361,7 +1362,7 @@
goto leave;
}
- write_status (STATUS_BEGIN_SIGNING);
+ write_status_begin_signing (mfx.md);
/* Pipe data through all filters; i.e. write the signed stuff */
/*(current filters: zip - encrypt - armor)*/
Modified: trunk/g10/status.c
===================================================================
--- trunk/g10/status.c 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/status.c 2007-01-30 20:16:28 UTC (rev 4411)
@@ -323,7 +323,40 @@
}
+/* Print the BEGIN_SIGNING status message. If MD is not NULL it is
+ used retrieve the hash algorithms used for the message. */
+void
+write_status_begin_signing (gcry_md_hd_t md)
+{
+ if (md)
+ {
+ char buf[100];
+ size_t buflen;
+ int i;
+
+ /* We use a hard coded list of possible algorithms. Using other
+ algorithms than specified by OpenPGP does not make sense
+ anyway. We do this out of performance reasons: Walking all
+ the 110 allowed Ids is not a good idea given the way the
+ check is implemented in libgcrypt. Recall that the only use
+ of this status code is to create the micalg algorithm for
+ PGP/MIME. */
+ buflen = 0;
+ for (i=1; i <= 11; i++)
+ if (i < 4 || i > 7)
+ if ( gcry_md_is_enabled (md, i) && buflen < DIM(buf) )
+ {
+ snprintf (buf+buflen, DIM(buf) - buflen - 1,
+ "%sH%d", buflen? " ":"",i);
+ buflen += strlen (buf+buflen);
+ }
+ write_status_text ( STATUS_BEGIN_SIGNING, buf );
+ }
+ else
+ write_status ( STATUS_BEGIN_SIGNING );
+}
+
static int
myread(int fd, void *buf, size_t count)
{
Modified: trunk/g10/status.h
===================================================================
--- trunk/g10/status.h 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/status.h 2007-01-30 20:16:28 UTC (rev 4411)
@@ -131,6 +131,9 @@
void write_status_text_and_buffer ( int no, const char *text,
const char *buffer, size_t len, int wrap );
+void write_status_begin_signing (gcry_md_hd_t md);
+
+
int cpr_enabled(void);
char *cpr_get( const char *keyword, const char *prompt );
char *cpr_get_no_help( const char *keyword, const char *prompt );
Modified: trunk/g10/textfilter.c
===================================================================
--- trunk/g10/textfilter.c 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/g10/textfilter.c 2007-01-30 20:16:28 UTC (rev 4411)
@@ -178,7 +178,7 @@
if( !escape_dash )
escape_from = 0;
- write_status (STATUS_BEGIN_SIGNING);
+ write_status_begin_signing (md);
for(;;) {
maxlen = MAX_LINELEN;
Modified: trunk/kbx/ChangeLog
===================================================================
--- trunk/kbx/ChangeLog 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/kbx/ChangeLog 2007-01-30 20:16:28 UTC (rev 4411)
@@ -1,3 +1,8 @@
+2007-01-25 Werner Koch <wk at g10code.com>
+
+ * Makefile.am (kbxutil_LDADD): Added LIBICONV. Noted by Billy
+ Halsey.
+
2006-11-15 Werner Koch <wk at g10code.com>
* kbxutil.c (dump_openpgp_key): Cast printf argument.
Modified: trunk/kbx/Makefile.am
===================================================================
--- trunk/kbx/Makefile.am 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/kbx/Makefile.am 2007-01-30 20:16:28 UTC (rev 4411)
@@ -48,6 +48,6 @@
kbxutil_SOURCES = kbxutil.c $(common_sources)
kbxutil_LDADD = ../jnlib/libjnlib.a ../gl/libgnu.a \
$(KSBA_LIBS) $(LIBGCRYPT_LIBS) \
- -lgpg-error $(LIBINTL) ../common/libcommon.a
+ -lgpg-error $(LIBINTL) ../common/libcommon.a $(LIBICONV)
$(PROGRAMS) : ../jnlib/libjnlib.a ../gl/libgnu.a ../common/libcommon.a
Modified: trunk/scd/ChangeLog
===================================================================
--- trunk/scd/ChangeLog 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/scd/ChangeLog 2007-01-30 20:16:28 UTC (rev 4411)
@@ -1,3 +1,8 @@
+2007-01-25 Werner Koch <wk at g10code.com>
+
+ * Makefile.am (scdaemon_LDADD): Added LIBICONV. Noted by Billy
+ Halsey.
+
2006-12-21 Werner Koch <wk at g10code.com>
* app-openpgp.c (verify_chv2): Factored most code out into...
Modified: trunk/scd/Makefile.am
===================================================================
--- trunk/scd/Makefile.am 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/scd/Makefile.am 2007-01-30 20:16:28 UTC (rev 4411)
@@ -46,7 +46,8 @@
scdaemon_LDADD = ../jnlib/libjnlib.a ../common/libcommonpth.a ../gl/libgnu.a \
$(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_PTH_LIBS) $(PTH_LIBS) \
- $(LIBUSB_LIBS) $(GPG_ERROR_LIBS) $(LIBINTL) $(DL_LIBS) $(NETLIBS)
+ $(LIBUSB_LIBS) $(GPG_ERROR_LIBS) \
+ $(LIBINTL) $(DL_LIBS) $(NETLIBS) $(LIBICONV)
# Removed for now: We need to decide whether it makes sense to
# continue it at all, given that gpg has now all required
Modified: trunk/sm/ChangeLog
===================================================================
--- trunk/sm/ChangeLog 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/sm/ChangeLog 2007-01-30 20:16:28 UTC (rev 4411)
@@ -1,3 +1,7 @@
+2007-01-25 Werner Koch <wk at g10code.com>
+
+ * Makefile.am (gpgsm_LDADD): Add LIBICONV. Noted by Billy Halsey.
+
2007-01-05 Werner Koch <wk at g10code.com>
* certchain.c (unknown_criticals): Add subjectAltName.
Modified: trunk/sm/Makefile.am
===================================================================
--- trunk/sm/Makefile.am 2007-01-25 10:26:55 UTC (rev 4410)
+++ trunk/sm/Makefile.am 2007-01-30 20:16:28 UTC (rev 4411)
@@ -58,7 +58,7 @@
gpgsm_LDADD = $(common_libs) \
$(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(LIBASSUAN_LIBS) \
- $(GPG_ERROR_LIBS) $(LIBINTL) $(ZLIBS)
+ $(GPG_ERROR_LIBS) $(LIBINTL) $(ZLIBS) $(LIBICONV)
# Make sure that all libs are build before we use them. This is
# important for things like make -j2.
More information about the Gnupg-commits
mailing list