gnupg/doc
Neal H. Walfield f77913e0ff g10: Add TOFU support.
* configure.ac: Check for sqlite3.
(SQLITE3_CFLAGS): AC_SUBST it.
(SQLITE3_LIBS): Likewise.
* g10/Makefile.am (AM_CFLAGS): Add $(SQLITE3_CFLAGS).
(gpg2_SOURCES): Add tofu.h and tofu.c.
(gpg2_LDADD): Add $(SQLITE3_LIBS).
* g10/tofu.c: New file.
* g10/tofu.h: New file.
* g10/options.h (trust_model): Define TM_TOFU and TM_TOFU_PGP.
(tofu_db_format): Define.
* g10/packet.h (PKT_signature): Add fields digest and digest_len.
* g10/gpg.c: Include "tofu.h".
(cmd_and_opt_values): Declare aTOFUPolicy, oTOFUDefaultPolicy,
oTOFUDBFormat.
(opts): Add them.
(parse_trust_model): Recognize the tofu and tofu+pgp trust models.
(parse_tofu_policy): New function.
(parse_tofu_db_format): New function.
(main): Initialize opt.tofu_default_policy and opt.tofu_db_format.
Handle aTOFUPolicy, oTOFUDefaultPolicy and oTOFUDBFormat.
* g10/mainproc.c (do_check_sig): If the signature is good, copy the
hash to SIG->DIGEST and set SIG->DIGEST_LEN appropriately.
* g10/trustdb.h (get_validity): Add arguments sig and may_ask.  Update
callers.
(tdb_get_validity_core): Add arguments sig and may_ask.  Update
callers.
* g10/trust.c (get_validity) Add arguments sig and may_ask.  Pass them
to tdb_get_validity_core.
* g10/trustdb.c: Include "tofu.h".
(trust_model_string): Handle TM_TOFU and TM_TOFU_PGP.
(tdb_get_validity_core): Add arguments sig and may_ask.  If
OPT.TRUST_MODEL is TM_TOFU or TM_TOFU_PGP, compute the TOFU trust
level.  Combine it with the computed PGP trust level, if appropriate.
* g10/keyedit.c: Include "tofu.h".
(show_key_with_all_names_colon): If the trust mode is tofu or
tofu+pgp, then show the trust policy.
* g10/keylist.c: Include "tofu.h".
(public_key_list): Also show the PGP stats if the trust model is
TM_TOFU_PGP.
(list_keyblock_colon): If the trust mode is tofu or
tofu+pgp, then show the trust policy.
* g10/pkclist.c: Include "tofu.h".
* g10/gpgv.c (get_validity): Add arguments sig and may_ask.
(enum tofu_policy): Define.
(tofu_get_policy): New stub.
(tofu_policy_str): Likewise.
* g10/test-stubs.c (get_validity): Add arguments sig and may_ask.
(enum tofu_policy): Define.
(tofu_get_policy): New stub.
(tofu_policy_str): Likewise.
* doc/DETAILS: Describe the TOFU Policy field.
* doc/gpg.texi: Document --tofu-set-policy, --trust-model=tofu,
--trust-model=tofu+pgp, --tofu-default-policy and --tofu-db-format.
* tests/openpgp/Makefile.am (TESTS): Add tofu.test.
(TEST_FILES): Add tofu-keys.asc, tofu-keys-secret.asc,
tofu-2183839A-1.txt, tofu-BC15C85A-1.txt and tofu-EE37CF96-1.txt.
(CLEANFILES): Add tofu.db.
(clean-local): Add tofu.d.
* tests/openpgp/tofu.test: New file.
* tests/openpgp/tofu-2183839A-1.txt: New file.
* tests/openpgp/tofu-BC15C85A-1.txt: New file.
* tests/openpgp/tofu-EE37CF96-1.txt: New file.
* tests/openpgp/tofu-keys.asc: New file.
* tests/openpgp/tofu-keys-secret.asc: New file.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
2015-10-18 18:45:40 +02:00
..
examples add new certifciates 2008-06-25 11:14:48 +00:00
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
DCO Add missing file. 2013-04-17 11:26:27 +02:00
DETAILS g10: Add TOFU support. 2015-10-18 18:45:40 +02:00
FAQ doc: Fix FAQ stub and remove faq build rules. 2015-03-04 15:10:52 +01:00
HACKING doc: Remove C++ style comments and update HACKING. 2015-08-20 17:42:55 +02:00
KEYSERVER Migrated more stuff to doc/ 2006-08-21 20:20:23 +00:00
Makefile.am drop long-deprecated gpgsm-gencert.sh 2015-07-03 22:21:52 +02:00
Notes Changed license of the manual stuff to GPL. 2004-09-29 11:04:30 +00:00
OpenPGP gpg: Remove all support for v3 keys and always create v4-signatures. 2014-10-17 13:32:16 +02:00
TRANSLATE copyright assignments are not anymore required. 2013-03-29 09:13:05 +01:00
a-decade-of-gnupg.txt doc: Typo fixes. 2014-12-14 12:15:21 +01:00
announce-2.0.txt sm/ 2006-11-14 10:23:21 +00:00
announce-2.1.txt doc: Add announce text for 2.1 2014-11-06 10:03:39 +01:00
com-certs.pem Remove all expired common CA certificates. 2014-11-04 21:47:03 +01:00
contrib.texi Include dirmngr manual 2010-06-10 10:39:44 +00:00
debugging.texi doc: Do not used fixed file names in the manuals. 2015-06-09 21:29:15 +02:00
dirmngr.texi dirmngr: Do tilde expansion for --hkp-cacert. 2015-10-06 13:10:26 +02:00
faq.org faq: Add a section on copyright assignments 2012-12-19 11:05:05 +01:00
fdl.texi Taken from NewPG 2003-01-09 13:24:01 +00:00
glossary.texi Typo fixes. Fixes bug#1093 2009-07-22 13:33:46 +00:00
gnupg-badge-openpgp.eps * preset-passphrase.c (preset_passphrase): Handle --passphrase. 2004-12-21 19:05:15 +00:00
gnupg-badge-openpgp.jpg * preset-passphrase.c (preset_passphrase): Handle --passphrase. 2004-12-21 19:05:15 +00:00
gnupg-badge-openpgp.pdf Made make distcheck work again 2006-06-20 17:47:10 +00:00
gnupg-card-architecture.fig Changed to GPLv3. 2007-07-04 19:49:40 +00:00
gnupg-logo-tr.png Beautified the online html manual 2011-08-12 14:40:47 +02:00
gnupg-logo.eps Add new logo. 2007-03-08 18:31:56 +00:00
gnupg-logo.pdf doc: Add gnupg-logo.pdf 2014-07-03 11:03:22 +02:00
gnupg-logo.png doc: Improve the rendering of the manual 2014-06-25 11:15:45 +02:00
gnupg.texi g10: Add TOFU support. 2015-10-18 18:45:40 +02:00
gnupg7.texi Include dirmngr manual 2010-06-10 10:39:44 +00:00
gpg-agent.texi agent: New option --pinentry-invisible-char. 2015-09-16 21:24:14 +02:00
gpg.texi g10: Add TOFU support. 2015-10-18 18:45:40 +02:00
gpgsm.texi gpgsm: Add command option "offline". 2015-06-29 11:06:41 +02:00
gpgv.texi gpg: Allow gpgv to work with a trustedkeys.kbx file. 2015-08-07 15:53:56 +02:00
gpl.texi doc: Formatting fixes. 2013-04-19 12:01:22 +02:00
help.be.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.ca.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.cs.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.da.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.de.txt po: Add lost translation of validity strings. 2015-08-20 16:58:30 +02:00
help.el.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.eo.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.es.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.et.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.fi.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.fr.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.gl.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.hu.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.id.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.it.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.ja.txt Japanese: update po and doc. 2013-02-12 14:15:21 +09:00
help.nb.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.pl.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.pt.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.pt_BR.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.ro.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.ru.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.sk.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.sv.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.tr.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.txt gpg: Add shortcut for setting key capabilities. 2014-09-26 14:43:48 +02:00
help.zh_CN.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
help.zh_TW.txt Created help files form the current po entries. 2007-12-04 15:00:14 +00:00
howto-create-a-server-cert.texi drop long-deprecated gpgsm-gencert.sh 2015-07-03 22:21:52 +02:00
howtos.texi Add a howto section. 2007-05-08 13:59:41 +00:00
instguide.texi doc: Do not used fixed file names in the manuals. 2015-06-09 21:29:15 +02:00
mkdefsinc.c doc,w32: Fix compiler warnings. 2015-09-28 18:40:38 +02:00
mksamplekeys Adjust awk to not add trailing whitespace. 2012-11-30 12:43:34 -05:00
opt-homedir.texi doc: Do not used fixed file names in the manuals. 2015-06-09 21:29:15 +02:00
qualified.txt add new certifciates 2008-06-25 11:14:48 +00:00
samplekeys.asc Refresh sample keys 2012-11-30 12:47:49 -05:00
scdaemon.texi doc: Do not used fixed file names in the manuals. 2015-06-09 21:29:15 +02:00
see-also-note.texi More man pages. Added include files for 2 common paragraphs. 2006-08-18 13:05:39 +00:00
specify-user-id.texi gpg: Remove warning message for non-implemented search modes. 2014-11-07 18:42:37 +01:00
sysnotes.texi Typo fixes. Fixes bug#1093 2009-07-22 13:33:46 +00:00
texi.css Beautified the online html manual 2011-08-12 14:40:47 +02:00
tools.texi drop long-deprecated gpgsm-gencert.sh 2015-07-03 22:21:52 +02:00
vuln-announce-2007-multiple-message.txt Changes to let the key listing use estream to help systems without 2007-03-19 14:35:04 +00:00
vuln-announce-2010-kbx-realloc.txt Some work on the dirmngr 2010-07-23 16:16:14 +00:00
vuln-announce-cve-2006-6235.txt 2006-12-06 16:38:34 +00:00
whats-new-in-2.1.txt build: Update README.maint. 2014-11-05 08:55:17 +01:00
yat2m.c doc: Do not used fixed file names in the manuals. 2015-06-09 21:29:15 +02:00