diff options
author | Werner Koch <[email protected]> | 2005-09-05 14:36:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-09-05 14:36:36 +0000 |
commit | 1b2f7cbe3ba731c5d94990b3f019b8c0bf641372 (patch) | |
tree | 5e09a115940b2dcde6a1f340619551f7bf9c9938 /scd/apdu.h | |
parent | Use a default argument for --write-env-file. (diff) | |
download | gnupg-1b2f7cbe3ba731c5d94990b3f019b8c0bf641372.tar.gz gnupg-1b2f7cbe3ba731c5d94990b3f019b8c0bf641372.zip |
Basically made Belgian EID cards work.
Signature creation has not yet been tested.
Also other changes to better cope with T=0 cards.
Diffstat (limited to 'scd/apdu.h')
-rw-r--r-- | scd/apdu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scd/apdu.h b/scd/apdu.h index e0f50b72b..45388fdd1 100644 --- a/scd/apdu.h +++ b/scd/apdu.h @@ -15,7 +15,8 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + * USA. * * $Id$ */ @@ -41,6 +42,7 @@ enum { SW_RECORD_NOT_FOUND = 0x6a83, SW_REF_NOT_FOUND = 0x6a88, SW_BAD_P0_P1 = 0x6b00, + SW_EXACT_LENGTH = 0x6c00, SW_INS_NOT_SUP = 0x6d00, SW_CLA_NOT_SUP = 0x6e00, SW_SUCCESS = 0x9000, @@ -65,6 +67,8 @@ enum { }; +#define SW_EXACT_LENGTH_P(a) (((a)&~0xff) == SW_EXACT_LENGTH) + /* Note , that apdu_open_reader returns no status word but -1 on error. */ int apdu_open_reader (const char *portstr); |