~ubuntu-branches/ubuntu/precise/gnupg2/precise-proposed

« back to all changes in this revision

Viewing changes to g10/kbx.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2006-01-24 04:31:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060124043142-pbg192or6qxv3yk2
Tags: 1.9.20-1
* New Upstream version. Closes:#306890,#344530
  * Closes:#320490: gpg-protect-tool fails to decrypt PKCS-12 files 
* Depend on libopensc2-dev, not -1-. Closes:#348106

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* kbx.h  -  The GnuPG Keybox
 
2
 *      Copyright (C) 2000 Free Software Foundation, Inc.
 
3
 *
 
4
 * This file is part of GnuPG.
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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
 
19
 */
 
20
 
 
21
#ifndef GPG_KBX_H
 
22
#define GPG_KBX_H 1
 
23
 
 
24
#include "keydb.h"
 
25
 
 
26
/*-- kbxblob.c */
 
27
struct kbxblob;
 
28
typedef struct kbxblob *KBXBLOB;
 
29
 
 
30
int kbx_new_blob ( KBXBLOB *r_blob,  char *image, size_t imagelen );
 
31
int kbx_create_blob ( KBXBLOB *r_blob,  KBNODE keyblock );
 
32
void kbx_release_blob ( KBXBLOB blob );
 
33
const char *kbx_get_blob_image ( KBXBLOB blob, size_t *n );
 
34
 
 
35
int kbx_dump_blob ( FILE *fp, KBXBLOB blob  );
 
36
int kbx_blob_has_fpr ( KBXBLOB blob, const byte *fpr );
 
37
int kbx_blob_has_kid ( KBXBLOB blob, const byte *keyidbuf, size_t keyidlen );
 
38
int kbx_blob_has_uid ( KBXBLOB blob,
 
39
                       int (*cmp)(const byte *, size_t, void *), void *opaque );
 
40
 
 
41
/*-- kbxio.c --*/
 
42
int kbx_read_blob ( KBXBLOB *r_blob, FILE *a );
 
43
 
 
44
/*-- kbxfile.c --*/
 
45
int kbxfile_search_by_fpr( const char *filename, const byte *fpr );
 
46
int kbxfile_search_by_kid ( const char *filename, u32 *kid, int mode );
 
47
int kbxfile_search_by_uid ( const char *filename, const char *name );
 
48
void print_kbxfile( const char *filename );
 
49
 
 
50
 
 
51
#endif /*GPG_KBX_H*/