summaryrefslogtreecommitdiffstats
path: root/kbx/keybox-search-desc.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2001-12-11 13:28:17 +0100
committerWerner Koch <wk@gnupg.org>2001-12-11 13:28:17 +0100
commitf463880562fd22d9900465b8c208cb73fc197669 (patch)
tree760295f98968ab5038480f8be4c47072bbad78b9 /kbx/keybox-search-desc.h
parentnew error codes (diff)
downloadgnupg2-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.h8
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;
};