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

« back to all changes in this revision

Viewing changes to scd/ccid-driver.h

  • 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:
58
58
#ifndef CCID_DRIVER_H
59
59
#define CCID_DRIVER_H
60
60
 
61
 
/* The CID driver returns the same error codes as the statsu words
 
61
/* The CID driver returns the same error codes as the status words
62
62
   used by GnuPG's apdu.h.  For ease of maintenance they should always
63
63
   match.  */
64
64
#define CCID_DRIVER_ERR_OUT_OF_CORE    0x10001 
74
74
#define CCID_DRIVER_ERR_GENERAL_ERROR  0x1000b
75
75
#define CCID_DRIVER_ERR_NO_READER      0x1000c
76
76
#define CCID_DRIVER_ERR_ABORTED        0x1000d
 
77
#define CCID_DRIVER_ERR_NO_KEYPAD      0x1000e
77
78
 
78
79
struct ccid_driver_s;
79
80
typedef struct ccid_driver_s *ccid_driver_t;
94
95
                     int pin_mode, 
95
96
                     int pinlen_min, int pinlen_max, int pin_padlen, 
96
97
                     unsigned char *resp, size_t maxresplen, size_t *nresp);
 
98
int ccid_transceive_escape (ccid_driver_t handle,
 
99
                            const unsigned char *data, size_t datalen,
 
100
                            unsigned char *resp, size_t maxresplen,
 
101
                            size_t *nresp);
97
102
 
98
103
 
99
104