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

« back to all changes in this revision

Viewing changes to sm/call-agent.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2006-01-24 04:31:42 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060124043142-pbg192or6qxv3yk2
Tags: 1.9.20-1
* New Upstream version. Closes:#306890,#344530
  * Closes:#320490: gpg-protect-tool fails to decrypt PKCS-12 files 
* Depend on libopensc2-dev, not -1-. Closes:#348106

Show diffs side-by-side

added added

removed removed

Lines of Context:
693
693
  return map_assuan_err (rc);
694
694
}
695
695
 
 
696
 
 
697
 
 
698
/* Ask the agent to pop up a confirmation dialog with the text DESC
 
699
   and an okay and cancel button.  */
 
700
gpg_error_t
 
701
gpgsm_agent_get_confirmation (ctrl_t ctrl, const char *desc)
 
702
{
 
703
  int rc;
 
704
  char line[ASSUAN_LINELENGTH];
 
705
 
 
706
  rc = start_agent (ctrl);
 
707
  if (rc)
 
708
    return rc;
 
709
 
 
710
  snprintf (line, DIM(line)-1, "GET_CONFIRMATION %s", desc);
 
711
  line[DIM(line)-1] = 0;
 
712
 
 
713
  rc = assuan_transact (agent_ctx, line, NULL, NULL, NULL, NULL, NULL, NULL);
 
714
  return map_assuan_err (rc);
 
715
}