~ubuntu-branches/ubuntu/quantal/gnupg2/quantal-updates

« back to all changes in this revision

Viewing changes to sm/call-agent.c

  • Committer: Bazaar Package Importer
  • Author(s): Marc Deslauriers
  • Date: 2011-05-25 14:27:35 UTC
  • mfrom: (1.1.15 upstream) (7.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110525142735-jccyw0fopnyv728q
Tags: 2.0.17-2ubuntu1
* Merge from debian unstable. Remaining changes:
  - Add udev rules to give gpg access to some smartcard readers;
    Debian #543217.
    . debian/gnupg2.dev: udev rules to set ACLs on SCM smartcard readers.
    . debian/rules: Call dh_installudev.
  - debian/control: Rename Vcs-* to XS-Debian-Vcs-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
 
112
112
 
113
113
 
114
 
static int
 
114
static gpg_error_t
115
115
membuf_data_cb (void *opaque, const void *buffer, size_t length)
116
116
{
117
117
  membuf_t *data = opaque;
124
124
 
125
125
/* This is the default inquiry callback.  It mainly handles the
126
126
   Pinentry notifications.  */
127
 
static int
 
127
static gpg_error_t
128
128
default_inq_cb (void *opaque, const char *line)
129
129
{
130
130
  gpg_error_t err;
301
301
 
302
302
/* Handle a CIPHERTEXT inquiry.  Note, we only send the data,
303
303
   assuan_transact talkes care of flushing and writing the end */
304
 
static int
 
304
static gpg_error_t
305
305
inq_ciphertext_cb (void *opaque, const char *line)
306
306
{
307
307
  struct cipher_parm_s *parm = opaque; 
423
423
 
424
424
/* Handle a KEYPARMS inquiry.  Note, we only send the data,
425
425
   assuan_transact takes care of flushing and writing the end */
426
 
static int
 
426
static gpg_error_t
427
427
inq_genkey_parms (void *opaque, const char *line)
428
428
{
429
429
  struct genkey_parm_s *parm = opaque; 
561
561
 
562
562
 
563
563
/* Callback for the gpgsm_agent_serialno fucntion.  */
564
 
static int
 
564
static gpg_error_t
565
565
scd_serialno_status_cb (void *opaque, const char *line)
566
566
{
567
567
  char **r_serialno = opaque;
613
613
 
614
614
 
615
615
/* Callback for the gpgsm_agent_serialno fucntion.  */
616
 
static int
 
616
static gpg_error_t
617
617
scd_keypairinfo_status_cb (void *opaque, const char *line)
618
618
{
619
619
  strlist_t *listaddr = opaque;
681
681
 
682
682
 
683
683
 
684
 
static int
 
684
static gpg_error_t
685
685
istrusted_status_cb (void *opaque, const char *line)
686
686
{
687
687
  struct rootca_flags_s *flags = opaque;
812
812
}
813
813
 
814
814
 
815
 
static int
 
815
static gpg_error_t
816
816
learn_status_cb (void *opaque, const char *line)
817
817
{
818
818
  struct learn_parm_s *parm = opaque;
831
831
  return 0;
832
832
}
833
833
 
834
 
static int
 
834
static gpg_error_t
835
835
learn_cb (void *opaque, const void *buffer, size_t length)
836
836
{
837
837
  struct learn_parm_s *parm = opaque;
879
879
     because we can assume that the --learn-card command has been used
880
880
     on purpose.  */
881
881
  rc = gpgsm_basic_cert_check (parm->ctrl, cert);
882
 
  if (rc && gpg_err_code (rc) != GPG_ERR_MISSING_CERT)
 
882
  if (rc && gpg_err_code (rc) != GPG_ERR_MISSING_CERT
 
883
      && gpg_err_code (rc) != GPG_ERR_MISSING_ISSUER_CERT)
883
884
    log_error ("invalid certificate: %s\n", gpg_strerror (rc));
884
885
  else
885
886
    {
1002
1003
 
1003
1004
 
1004
1005
 
1005
 
static int
 
1006
static gpg_error_t
1006
1007
keyinfo_status_cb (void *opaque, const char *line)
1007
1008
{
1008
1009
  char **serialno = opaque;