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

« back to all changes in this revision

Viewing changes to agent/gpg-agent.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia
  • Date: 2007-02-02 14:29:54 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070202142954-f5h55skq432ona6m
Tags: 2.0.2-0ubuntu1
* New upstream release
  - includes the patch for CVE-2006-6235
  - a PIN pad can now also be used for signing keys
* Remaining changes:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).
  - Build-depend on libcurl3-gnutls-dev
  - Include /doc files as done with gnupg
* g10/call-agent.c: set DBG_ASSUAN to 0 to suppress a debug message
* debian/rules: add doc/com-certs.pem to the docs for gpgsm
* debian/README.Debian: remove note the gnupg2 isn't released yet.
* Modified Maintainer values to match Debian-Maintainer-Field spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
  oDefCacheTTLSSH,
89
89
  oMaxCacheTTL,
90
90
  oMaxCacheTTLSSH,
 
91
  oMinPassphraseLen,
91
92
  oUseStandardSocket,
92
93
  oNoUseStandardSocket,
93
94
 
148
149
  { oDefCacheTTLSSH, "default-cache-ttl-ssh", 4, "@" },
149
150
  { oMaxCacheTTL, "max-cache-ttl", 4, "@" },
150
151
  { oMaxCacheTTLSSH, "max-cache-ttl-ssh", 4, "@" },
 
152
  { oMinPassphraseLen, "min-passphrase-len", 4, "@" },
151
153
  { oIgnoreCacheForSigning, "ignore-cache-for-signing", 0,
152
154
                               N_("do not use the PIN cache when signing")},
153
155
  { oAllowMarkTrusted, "allow-mark-trusted", 0,
164
166
#define DEFAULT_CACHE_TTL     (10*60)  /* 10 minutes */
165
167
#define DEFAULT_CACHE_TTL_SSH (30*60)  /* 30 minutes */
166
168
#define MAX_CACHE_TTL         (120*60) /* 2 hours */
 
169
#define MIN_PASSPHRASE_LEN    (8)      
167
170
 
168
171
 
169
172
/* flag to indicate that a shutdown was requested */
403
406
      opt.def_cache_ttl_ssh = DEFAULT_CACHE_TTL_SSH;
404
407
      opt.max_cache_ttl = MAX_CACHE_TTL;
405
408
      opt.max_cache_ttl_ssh = MAX_CACHE_TTL;
 
409
      opt.min_passphrase_len = MIN_PASSPHRASE_LEN;
406
410
      opt.ignore_cache_for_signing = 0;
407
411
      opt.allow_mark_trusted = 0;
408
412
      opt.disable_scdaemon = 0;
441
445
    case oMaxCacheTTL: opt.max_cache_ttl = pargs->r.ret_ulong; break;
442
446
    case oMaxCacheTTLSSH: opt.max_cache_ttl_ssh = pargs->r.ret_ulong; break;
443
447
      
 
448
    case oMinPassphraseLen: opt.min_passphrase_len = pargs->r.ret_ulong; break;
 
449
 
444
450
    case oIgnoreCacheForSigning: opt.ignore_cache_for_signing = 1; break;
445
451
 
446
452
    case oAllowMarkTrusted: opt.allow_mark_trusted = 1; break;