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

« back to all changes in this revision

Viewing changes to sm/gpgsm.h

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-03-08 22:46:47 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20090308224647-gq17gatcl71lrc2k
Tags: 2.0.11-1
* New upstream release. (Closes: #496663)
* debian/control: Make the description a little more distinctive than
  gnupg v1's. Thanks Jari Aalto. (Closes: #496323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
#define MAX_DIGEST_LEN 24 
37
37
 
 
38
struct keyserver_spec
 
39
{
 
40
  struct keyserver_spec *next;
 
41
 
 
42
  char *host;
 
43
  int port;
 
44
  char *user;
 
45
  char *pass;
 
46
  char *base;
 
47
};
 
48
 
 
49
 
38
50
/* A large struct named "opt" to keep global flags. */
39
51
struct 
40
52
{
123
135
                               runtime option in case we want to check
124
136
                               the integrity of the software at
125
137
                               runtime. */
 
138
 
 
139
  struct keyserver_spec *keyserver;
126
140
} opt;
127
141
 
128
142
 
158
172
  audit_ctx_t audit;  /* NULL or a context for the audit subsystem.  */
159
173
  int agent_seen;     /* Flag indicating that the gpg-agent has been
160
174
                         accessed.  */
161
 
  int dirmngr_seen;   /* Flag indicating that the dirmngr has been
162
 
                         accessed.  */
163
175
  
164
176
  int with_colons;    /* Use column delimited output format */
165
177
  int with_chain;     /* Include the certifying certs in a listing */
193
205
  ksba_cert_t cert;
194
206
  int is_encrypt_to; /* True if the certificate has been set through
195
207
                        the --encrypto-to option. */
 
208
  int hash_algo;     /* Used to track the hash algorithm to use.  */
 
209
  const char *hash_algo_oid;  /* And the corresponding OID.  */
196
210
};
197
211
typedef struct certlist_s *certlist_t;
198
212
 
253
267
void gpgsm_print_name2 (FILE *fp, const char *string, int translate);
254
268
void gpgsm_print_name (FILE *fp, const char *string);
255
269
void gpgsm_es_print_name (estream_t fp, const char *string);
 
270
void gpgsm_es_print_name2 (estream_t fp, const char *string, int translate);
256
271
 
257
272
void gpgsm_cert_log_name (const char *text, ksba_cert_t cert);
258
273
 
372
387
                        ksba_const_sexp_t keyparms, ksba_sexp_t *r_pubkey);
373
388
int gpgsm_agent_readkey (ctrl_t ctrl, int fromcard, const char *hexkeygrip,
374
389
                         ksba_sexp_t *r_pubkey);
375
 
int gpgsm_agent_istrusted (ctrl_t ctrl, ksba_cert_t cert,
 
390
int gpgsm_agent_istrusted (ctrl_t ctrl, ksba_cert_t cert, const char *hexfpr,
376
391
                           struct rootca_flags_s *rootca_flags);
377
392
int gpgsm_agent_havekey (ctrl_t ctrl, const char *hexkeygrip);
378
393
int gpgsm_agent_marktrusted (ctrl_t ctrl, ksba_cert_t cert);
379
394
int gpgsm_agent_learn (ctrl_t ctrl);
380
395
int gpgsm_agent_passwd (ctrl_t ctrl, const char *hexkeygrip, const char *desc);
381
396
gpg_error_t gpgsm_agent_get_confirmation (ctrl_t ctrl, const char *desc);
 
397
gpg_error_t gpgsm_agent_send_nop (ctrl_t ctrl);
382
398
 
383
399
/*-- call-dirmngr.c --*/
384
400
int gpgsm_dirmngr_isvalid (ctrl_t ctrl,