~ubuntu-branches/ubuntu/karmic/gnupg2/karmic-security

« back to all changes in this revision

Viewing changes to sm/gpgsm.h

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2009-08-04 12:27:49 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090804122749-q0j52zp6xmzvyall
Tags: 2.0.12-0ubuntu1
* New upstream release.
* Add 01-scd-pw2.patch, 03-opgp-writekey.patch, and 06-opgp-sign3072.patch
  from https://bugs.g10code.com/gnupg/issue1094 to make OpenPGP 2.0
  smartcards work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#include "../common/estream.h"
34
34
#include "../common/audit.h"
35
35
 
36
 
#define MAX_DIGEST_LEN 24 
 
36
#define MAX_DIGEST_LEN 64
37
37
 
38
38
struct keyserver_spec
39
39
{
82
82
  int with_md5_fingerprint; /* Also print an MD5 fingerprint for
83
83
                               standard key listings. */
84
84
 
85
 
  int with_ephemeral_keys;  /* Include ephemeral flagged keys in the
86
 
                               keylisting. */
87
 
 
88
85
  int armor;        /* force base64 armoring (see also ctrl.with_base64) */
89
86
  int no_armor;     /* don't try to figure out whether data is base64 armored*/
90
87
 
95
92
  const char *def_cipher_algoid;  /* cipher algorithm to use if
96
93
                                     nothing else is specified */
97
94
 
98
 
  int def_digest_algo;    /* Ditto for hash algorithm */
99
95
  int def_compress_algo;  /* Ditto for compress algorithm */
100
96
 
 
97
  int forced_digest_algo; /* User forced hash algorithm. */
 
98
 
101
99
  char *def_recipient;    /* userID of the default recipient */
102
100
  int def_recipient_self; /* The default recipient is the default key */
103
101
 
176
174
  int with_colons;    /* Use column delimited output format */
177
175
  int with_chain;     /* Include the certifying certs in a listing */
178
176
  int with_validation;/* Validate each key while listing. */
 
177
  int with_ephemeral_keys;  /* Include ephemeral flagged keys in the
 
178
                               keylisting. */
179
179
 
180
180
  int autodetect_encoding; /* Try to detect the input encoding */
181
181
  int is_pem;         /* Is in PEM format */
230
230
/*-- server.c --*/
231
231
void gpgsm_server (certlist_t default_recplist);
232
232
gpg_error_t gpgsm_status (ctrl_t ctrl, int no, const char *text);
233
 
gpg_error_t gpgsm_status2 (ctrl_t ctrl, int no, ...);
 
233
gpg_error_t gpgsm_status2 (ctrl_t ctrl, int no, ...) GNUPG_GCC_A_SENTINEL(0);
234
234
gpg_error_t gpgsm_status_with_err_code (ctrl_t ctrl, int no, const char *text,
235
235
                                        gpg_err_code_t ec);
236
236
gpg_error_t gpgsm_proxy_pinentry_notify (ctrl_t ctrl,
241
241
                                      unsigned char *array, int *r_len);
242
242
char *gpgsm_get_fingerprint_string (ksba_cert_t cert, int algo);
243
243
char *gpgsm_get_fingerprint_hexstring (ksba_cert_t cert, int algo);
244
 
unsigned long gpgsm_get_short_fingerprint (ksba_cert_t cert);
 
244
unsigned long gpgsm_get_short_fingerprint (ksba_cert_t cert,
 
245
                                           unsigned long *r_high);
245
246
unsigned char *gpgsm_get_keygrip (ksba_cert_t cert, unsigned char *array);
246
247
char *gpgsm_get_keygrip_hexstring (ksba_cert_t cert);
247
248
int  gpgsm_get_key_algo_info (ksba_cert_t cert, unsigned int *nbits);
395
396
int gpgsm_agent_passwd (ctrl_t ctrl, const char *hexkeygrip, const char *desc);
396
397
gpg_error_t gpgsm_agent_get_confirmation (ctrl_t ctrl, const char *desc);
397
398
gpg_error_t gpgsm_agent_send_nop (ctrl_t ctrl);
 
399
gpg_error_t gpgsm_agent_keyinfo (ctrl_t ctrl, const char *hexkeygrip,
 
400
                                 char **r_serialno);
398
401
 
399
402
/*-- call-dirmngr.c --*/
400
403
int gpgsm_dirmngr_isvalid (ctrl_t ctrl,