diff options
author | Werner Koch <wk@gnupg.org> | 2001-12-11 13:28:17 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2001-12-11 13:28:17 +0100 |
commit | f463880562fd22d9900465b8c208cb73fc197669 (patch) | |
tree | 760295f98968ab5038480f8be4c47072bbad78b9 /kbx/keybox-search-desc.h | |
parent | new error codes (diff) | |
download | gnupg2-f463880562fd22d9900465b8c208cb73fc197669.tar.xz gnupg2-f463880562fd22d9900465b8c208cb73fc197669.zip |
New searchmode and hack to allow a hex encoded serial number
Diffstat (limited to 'kbx/keybox-search-desc.h')
-rw-r--r-- | kbx/keybox-search-desc.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kbx/keybox-search-desc.h b/kbx/keybox-search-desc.h index 88ffde8d0..84be20f18 100644 --- a/kbx/keybox-search-desc.h +++ b/kbx/keybox-search-desc.h @@ -42,6 +42,7 @@ typedef enum { KEYDB_SEARCH_MODE_FPR, KEYDB_SEARCH_MODE_ISSUER, KEYDB_SEARCH_MODE_ISSUER_SN, + KEYDB_SEARCH_MODE_SN, KEYDB_SEARCH_MODE_SUBJECT, KEYDB_SEARCH_MODE_FIRST, KEYDB_SEARCH_MODE_NEXT @@ -51,11 +52,12 @@ struct keydb_search_desc { KeydbSearchMode mode; int (*skipfnc)(void *,void*); /* used to be: void*, u32* */ void *skipfncvalue; - const unsigned char *sn; /* used only with _MODE_ISSUER_SN */ + const unsigned char *sn; + int sn_is_string; /* very ugly */ union { const char *name; - char fpr[24]; - /*fixme: u32 kid[2];*/ + unsigned char fpr[24]; + unsigned char kid[8]; } u; }; |