gnupg/g10 (7 files)

cvs user dshaw cvs@cvs.gnupg.org
Wed, 12 Feb 2003 19:43:54 +0100


    Date: Wednesday, February 12, 2003 @ 19:43:44
  Author: dshaw
    Path: /cvs/gnupg/gnupg/g10

Modified: ChangeLog export.c getkey.c keydb.c keydb.h keyring.c keyring.h

* keydb.h, getkey.c (classify_user_id, classify_user_id2): Make 'exact' a
per-desc item.  Merge into one function since 'force_exact' is no longer
needed. (key_byname): Use new classify_user_id function, and new exact
flag in KEYDB_SEARCH_DESC.

* keyring.h, keyring.c (keyring_search): Return an optional index to show
which KEYDB_SEARCH_DESC was the matching one.

* keydb.h, keydb.c (keydb_search): Rename to keydb_search2, and pass the
optional index to keyring_search.  Add a macro version of keydb_search
that calls this new function.

* export.c (do_export_stream): If the keyid! syntax is used, export only
that specified key.  If the key in question is a subkey, export the
primary plus that subkey only.


-----------+
 ChangeLog |   19 ++++++++++++++
 export.c  |   81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 getkey.c  |   35 +++++++++----------------
 keydb.c   |    7 ++---
 keydb.h   |    5 ++-
 keyring.c |   11 +++++---
 keyring.h |    3 +-
 7 files changed, 127 insertions(+), 34 deletions(-)