~ubuntu-branches/ubuntu/raring/gnupg2/raring-proposed

« back to all changes in this revision

Viewing changes to agent/agent.h

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2009-08-23 20:48:11 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20090823204811-cajik24rci4xszia
Tags: 2.0.12-1
* New upstream release. (Closes: #499569, #463270, #446494, #314068, 
  #519375, #514587)
* debian/control: Change build dependency on gs to ghoscript, since
  ghoscript has been replaced.
* debian/compat: Use debhelper v7.
* debian/control: Update Standards-Version to 3.8.2.
* debian/control: Use ${misc:Depends}.
* configure.ac: Override pkgdatadir so that it points to
  /usr/share/gnupg2. (Closes: #528734)
* debian/rules: No longer need to specify pkgdatadir at make install
  time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
#define MD_USER_TLS_MD5SHA1 (GCRY_MODULE_ID_USER+1)
43
43
 
44
44
/* Maximum length of a digest.  */
45
 
#define MAX_DIGEST_LEN 36
 
45
#define MAX_DIGEST_LEN 64
46
46
 
47
47
/* A large struct name "opt" to keep global flags */
48
48
struct
201
201
cache_mode_t;
202
202
 
203
203
 
 
204
/* The type of a function to lookup a TTL by a keygrip.  */
 
205
typedef int (*lookup_ttl_t)(const char *hexgrip);
 
206
 
 
207
 
204
208
/*-- gpg-agent.c --*/
205
209
void agent_exit (int rc) JNLIB_GCC_A_NR; /* Also implemented in other tools */
206
210
const char *get_agent_socket_name (void);
212
216
 
213
217
/*-- command.c --*/
214
218
gpg_error_t agent_inq_pinentry_launched (ctrl_t ctrl, unsigned long pid);
215
 
gpg_error_t agent_write_status (ctrl_t ctrl, const char *keyword, ...);
 
219
gpg_error_t agent_write_status (ctrl_t ctrl, const char *keyword, ...)
 
220
     GNUPG_GCC_A_SENTINEL(0);
216
221
void bump_key_eventcounter (void);
217
222
void bump_card_eventcounter (void);
218
223
void start_command_handler (ctrl_t, gnupg_fd_t, gnupg_fd_t);
228
233
                                 const unsigned char *grip,
229
234
                                 unsigned char **shadow_info,
230
235
                                 cache_mode_t cache_mode,
 
236
                                 lookup_ttl_t lookup_ttl,
231
237
                                 gcry_sexp_t *result);
232
238
gpg_error_t agent_public_key_from_file (ctrl_t ctrl, 
233
239
                                        const unsigned char *grip,
234
240
                                        gcry_sexp_t *result);
235
241
int agent_key_available (const unsigned char *grip);
 
242
gpg_error_t agent_key_info_from_file (ctrl_t ctrl, const unsigned char *grip,
 
243
                                      int *r_keytype,
 
244
                                      unsigned char **r_shadow_info);
236
245
 
237
246
/*-- call-pinentry.c --*/
238
247
void initialize_module_call_pinentry (void);
245
254
                  struct pin_entry_info_s *pininfo);
246
255
int agent_get_passphrase (ctrl_t ctrl, char **retpass,
247
256
                          const char *desc, const char *prompt,
248
 
                          const char *errtext);
 
257
                          const char *errtext, int with_qualitybar);
249
258
int agent_get_confirmation (ctrl_t ctrl, const char *desc, const char *ok,
250
 
                            const char *cancel);
 
259
                            const char *notokay, int with_cancel);
251
260
int agent_show_message (ctrl_t ctrl, const char *desc, const char *ok_btn);
252
261
int agent_popup_message_start (ctrl_t ctrl,
253
262
                               const char *desc, const char *ok_btn);
266
275
/*-- pksign.c --*/
267
276
int agent_pksign_do (ctrl_t ctrl, const char *desc_text,
268
277
                     gcry_sexp_t *signature_sexp,
269
 
                     cache_mode_t cache_mode);
 
278
                     cache_mode_t cache_mode, lookup_ttl_t lookup_ttl);
270
279
int agent_pksign (ctrl_t ctrl, const char *desc_text,
271
280
                  membuf_t *outbuf, cache_mode_t cache_mode);
272
281
 
294
303
                      unsigned char **result);
295
304
int agent_get_shadow_info (const unsigned char *shadowkey,
296
305
                           unsigned char const **shadow_info);
 
306
gpg_error_t parse_shadow_info (const unsigned char *shadow_info, 
 
307
                               char **r_hexsn, char **r_idstr);
297
308
 
298
309
 
299
310
/*-- trustlist.c --*/
300
311
void initialize_module_trustlist (void);
301
 
gpg_error_t agent_istrusted (ctrl_t ctrl, const char *fpr);
 
312
gpg_error_t agent_istrusted (ctrl_t ctrl, const char *fpr, int *r_disabled);
302
313
gpg_error_t agent_listtrusted (void *assuan_context);
303
314
gpg_error_t agent_marktrusted (ctrl_t ctrl, const char *name,
304
315
                               const char *fpr, int flag);