~ubuntu-branches/ubuntu/hardy/gnupg2/hardy-proposed

« back to all changes in this revision

Viewing changes to sm/gpgsm.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-05-15 13:54:55 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070515135455-89qfyalmgjy6gcqw
Tags: 2.0.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).
  - Build-depend on libcurl3-gnutls-dev
  - g10/call-agent.c: set DBG_ASSUAN to 0 to suppress a debug message
  - Include /doc files as done with gnupg
  - debian/rules: add doc/com-certs.pem to the docs for gpgsm
  - debian/copyright: update download url
  - debian/README.Debian: remove note the gnupg2 isn't released yet.
  - debian/control: Change Maintainer/XSBC-Original-Maintainer field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <ksba.h>
33
33
#include "../common/util.h"
34
34
#include "../common/errors.h"
 
35
#include "../common/estream.h"
35
36
 
36
37
#define MAX_DIGEST_LEN 24 
37
38
 
73
74
  int armor;        /* force base64 armoring (see also ctrl.with_base64) */
74
75
  int no_armor;     /* don't try to figure out whether data is base64 armored*/
75
76
 
 
77
  const char *p12_charset; /* Use this charset for encoding the
 
78
                              pkcs#12 passphrase.  */
 
79
 
 
80
 
76
81
  const char *def_cipher_algoid;  /* cipher algorithm to use if
77
82
                                     nothing else is specified */
78
83
 
219
224
int gpgsm_reader_eof_seen (Base64Context ctx);
220
225
void gpgsm_destroy_reader (Base64Context ctx);
221
226
int  gpgsm_create_writer (Base64Context *ctx,
222
 
                          ctrl_t ctrl, FILE *fp, ksba_writer_t *r_writer);
 
227
                          ctrl_t ctrl, FILE *fp, estream_t stream,
 
228
                          ksba_writer_t *r_writer);
223
229
int  gpgsm_finish_writer (Base64Context ctx);
224
230
void gpgsm_destroy_writer (Base64Context ctx);
225
231
 
226
232
 
227
233
/*-- certdump.c --*/
228
 
void gpgsm_print_serial (FILE *fp, ksba_const_sexp_t p);
229
 
void gpgsm_print_time (FILE *fp, ksba_isotime_t t);
 
234
void gpgsm_print_serial (estream_t fp, ksba_const_sexp_t p);
 
235
void gpgsm_print_time (estream_t fp, ksba_isotime_t t);
230
236
void gpgsm_print_name2 (FILE *fp, const char *string, int translate);
231
237
void gpgsm_print_name (FILE *fp, const char *string);
 
238
void gpgsm_es_print_name (estream_t fp, const char *string);
232
239
 
233
240
void gpgsm_cert_log_name (const char *text, ksba_cert_t cert);
234
241
 
261
268
int gpgsm_is_root_cert (ksba_cert_t cert);
262
269
int gpgsm_validate_chain (ctrl_t ctrl, ksba_cert_t cert,
263
270
                          ksba_isotime_t r_exptime,
264
 
                          int listmode, FILE *listfp,
 
271
                          int listmode, estream_t listfp,
265
272
                          unsigned int flags);
266
273
int gpgsm_basic_cert_check (ksba_cert_t cert);
267
274
 
281
288
 
282
289
/*-- keylist.c --*/
283
290
gpg_error_t gpgsm_list_keys (ctrl_t ctrl, strlist_t names,
284
 
                             FILE *fp, unsigned int mode);
 
291
                             estream_t fp, unsigned int mode);
285
292
 
286
293
/*-- import.c --*/
287
294
int gpgsm_import (ctrl_t ctrl, int in_fd);
289
296
                        int (*of)(const char *fname));
290
297
 
291
298
/*-- export.c --*/
292
 
void gpgsm_export (ctrl_t ctrl, strlist_t names, FILE *fp);
 
299
void gpgsm_export (ctrl_t ctrl, strlist_t names, FILE *fp, estream_t stream);
293
300
void gpgsm_p12_export (ctrl_t ctrl, const char *name, FILE *fp);
294
301
 
295
302
/*-- delete.c --*/