STABLE-BRANCH-1-2 gnupg/g10 (8 files)

cvs user dshaw cvs@cvs.gnupg.org
Fri, 09 May 2003 18:05:35 +0200


    Date: Friday, May 9, 2003 @ 18:05:25
  Author: dshaw
    Path: /cvs/gnupg/gnupg/g10
     Tag: STABLE-BRANCH-1-2

Modified: ChangeLog g10.c getkey.c gpgv.c keylist.c packet.h trustdb.c
          trustdb.h

* g10.c (main): New --gnupg option to disable the various --openpgp,
--pgpX, etc. options.  This is the same as --no-XXXX for those options.

* packet.h, getkey.c (skip_disabled), keylist.c (print_capabilities): New
"pk_is_disabled" macro to retrieve the cached disabled value if available,
and fill it in via cache_disabled_value if not available.

* trustdb.h, gpgv.c (is_disabled), trustdb.c (is_disabled): Rename to
cache_disabled_value.  Cache the result of the check so we don't need to
hit the trustdb more than once.

* trustdb.c (get_validity): Cache the disabled value since we have it
handy and it might be useful later.


-----------+
 ChangeLog |   18 ++++++++++++++++++
 g10.c     |   29 +++++++++++------------------
 getkey.c  |    2 +-
 gpgv.c    |    2 +-
 keylist.c |    2 +-
 packet.h  |    5 +++++
 trustdb.c |   19 +++++++++++++++++--
 trustdb.h |    2 +-
 8 files changed, 55 insertions(+), 24 deletions(-)