1 /* keybox-search-desc.h - Keybox serch description
2 * Copyright (C) 2001 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * GnuPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * GnuPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
22 This file is a temporary kludge until we can come up with solution
23 to share this description between keybox and the application
27 #ifndef KEYBOX_SEARCH_DESC_H
28 #define KEYBOX_SEARCH_DESC_H 1
31 KEYDB_SEARCH_MODE_NONE,
32 KEYDB_SEARCH_MODE_EXACT,
33 KEYDB_SEARCH_MODE_SUBSTR,
34 KEYDB_SEARCH_MODE_MAIL,
35 KEYDB_SEARCH_MODE_MAILSUB,
36 KEYDB_SEARCH_MODE_MAILEND,
37 KEYDB_SEARCH_MODE_WORDS,
38 KEYDB_SEARCH_MODE_SHORT_KID,
39 KEYDB_SEARCH_MODE_LONG_KID,
40 KEYDB_SEARCH_MODE_FPR16,
41 KEYDB_SEARCH_MODE_FPR20,
42 KEYDB_SEARCH_MODE_FPR,
43 KEYDB_SEARCH_MODE_ISSUER,
44 KEYDB_SEARCH_MODE_ISSUER_SN,
46 KEYDB_SEARCH_MODE_SUBJECT,
47 KEYDB_SEARCH_MODE_FIRST,
48 KEYDB_SEARCH_MODE_NEXT
51 struct keydb_search_desc {
53 int (*skipfnc)(void *,void*); /* used to be: void*, u32* */
55 const unsigned char *sn;
56 int snlen; /* -1 := sn is a hex string */
59 unsigned char fpr[24];
65 struct keydb_search_desc;
66 typedef struct keydb_search_desc KEYDB_SEARCH_DESC;
68 typedef struct keydb_search_desc KEYBOX_SEARCH_DESC;
72 #endif /*KEYBOX_SEARCH_DESC_H*/