~ubuntu-branches/ubuntu/natty/gnupg2/natty-security

« back to all changes in this revision

Viewing changes to agent/genkey.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2005-12-08 22:13:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051208221321-4rvs2vu835iam5wv
Tags: 1.9.19-2
* Convert debian/changelog to UTF-8.
* Put gnupg-agent and gpgsm lintian overrides in the respectively
  right package.  Closes: #335066
* Added debhelper tokens to maintainer scripts.
* xsession fixes:
  o Added host name to gpg-agent PID file name.  Closes: #312717
  o Fixed xsession script to be able to run under zsh.  Closes: #308516
  o Don't run gpg-agent if one is already running.  Closes: #336480
* debian/control:
  o Fixed package description of gpgsm package.  Closes: #299842
  o Added mention of gpg-agent to description of gnupg-agent package.
    Closes: #304355
* Thanks to Peter Eisentraut <petere@debian.org> for all of the above.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
store_key (gcry_sexp_t private, const char *passphrase, int force)
34
34
{
35
35
  int rc;
36
 
  char *buf;
 
36
  unsigned char *buf;
37
37
  size_t len;
38
38
  unsigned char grip[20];
39
39
  
120
120
    pi2->check_cb_arg = pi->pin;
121
121
 
122
122
  next_try:
123
 
    rc = agent_askpin (ctrl, text1, initial_errtext, pi);
 
123
    rc = agent_askpin (ctrl, text1, NULL, initial_errtext, pi);
124
124
    initial_errtext = NULL;
125
125
    if (!rc)
126
126
      {
127
 
        rc = agent_askpin (ctrl, text2, NULL, pi2);
 
127
        rc = agent_askpin (ctrl, text2, NULL, NULL, pi2);
128
128
        if (rc == -1)
129
129
          { /* The re-entered one did not match and the user did not
130
130
               hit cancel. */
228
228
    pi2->check_cb_arg = pi->pin;
229
229
 
230
230
  next_try:
231
 
    rc = agent_askpin (ctrl, text1, initial_errtext, pi);
 
231
    rc = agent_askpin (ctrl, text1, NULL, initial_errtext, pi);
232
232
    if (!rc)
233
233
      {
234
 
        rc = agent_askpin (ctrl, text2, NULL, pi2);
 
234
        rc = agent_askpin (ctrl, text2, NULL, NULL, pi2);
235
235
        if (rc == -1)
236
236
          { /* The re-entered one did not match and the user did not
237
237
               hit cancel. */