~ubuntu-branches/ubuntu/trusty/gnutls26/trusty

« back to all changes in this revision

Viewing changes to lib/opencdk/keydb.h

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-10-01 15:28:13 UTC
  • mfrom: (12.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20111001152813-yygm1c4cxonfxhzy
* New upstream version.
  + Allow CA importing of 0 certificates to succeed. Closes: #640639
* Add libp11-kit-dev to libgnutls-dev dependencies. (see #643811)
* [20_guiledocstring.diff] guile: Fix docstring extraction with CPP 4.5+.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
typedef struct cdk_keydb_search_s
19
19
{
20
 
  off_t off;                    /* last file offset */
 
20
  off_t off;                    /* last file offset */
21
21
  union
22
22
  {
23
 
    char *pattern;              /* A search is performed by pattern. */
24
 
    u32 keyid[2];               /* A search by keyid. */
25
 
    byte fpr[KEY_FPR_LEN];      /* A search by fingerprint. */
 
23
    char *pattern;              /* A search is performed by pattern. */
 
24
    u32 keyid[2];               /* A search by keyid. */
 
25
    byte fpr[KEY_FPR_LEN];      /* A search by fingerprint. */
26
26
  } u;
27
27
  int type;
28
28
  struct key_table_s *cache;
29
29
  size_t ncache;
30
 
  unsigned int no_cache:1;      /* disable the index cache. */
 
30
  unsigned int no_cache:1;      /* disable the index cache. */
31
31
 
32
32
  cdk_stream_t idx;
33
 
  char *idx_name;               /* name of the index file or NULL. */
 
33
  char *idx_name;               /* name of the index file or NULL. */
34
34
 
35
35
} cdk_keydb_search_s;
36
36
 
37
37
/* Internal key database handle. */
38
38
struct cdk_keydb_hd_s
39
39
{
40
 
  int type;                     /* type of the key db handle. */
41
 
  int fp_ref;                   /* 1=means it is a reference and shall not be closed. */
 
40
  int type;                     /* type of the key db handle. */
 
41
  int fp_ref;                   /* 1=means it is a reference and shall not be closed. */
42
42
  cdk_stream_t fp;
43
 
  char *name;                   /* name of the underlying file or NULL. */
44
 
  unsigned int secret:1;        /* contain secret keys. */
45
 
  unsigned int isopen:1;        /* the underlying stream is opened. */
 
43
  char *name;                   /* name of the underlying file or NULL. */
 
44
  unsigned int secret:1;        /* contain secret keys. */
 
45
  unsigned int isopen:1;        /* the underlying stream is opened. */
46
46
 
47
47
  /* structure to store some stats about the keydb. */
48
48
  struct
49
49
  {
50
 
    size_t new_keys;            /* amount of new keys that were imported. */
 
50
    size_t new_keys;            /* amount of new keys that were imported. */
51
51
  } stats;
52
52
};