more fix to CERTDO_SUPPORT
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2011-12-22 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* src/openpgp-do.c (extended_capabilities) [CERTDO_SUPPORT]:
|
||||||
|
conditionalize.
|
||||||
|
|
||||||
2011-12-21 Niibe Yutaka <gniibe@fsij.org>
|
2011-12-21 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* src/openpgp-do.c (gpg_do_get_data) [CERTDO_SUPPORT]: ifdef out.
|
* src/openpgp-do.c (gpg_do_get_data) [CERTDO_SUPPORT]: ifdef out.
|
||||||
|
|||||||
@@ -98,14 +98,18 @@ static const uint8_t extended_capabilities[] __attribute__ ((aligned (1))) = {
|
|||||||
*/
|
*/
|
||||||
0, /* Secure Messaging Algorithm: N/A (TDES=0, AES=1) */
|
0, /* Secure Messaging Algorithm: N/A (TDES=0, AES=1) */
|
||||||
0x00, 0x00, /* Max get challenge */
|
0x00, 0x00, /* Max get challenge */
|
||||||
|
#ifdef CERTDO_SUPPORT
|
||||||
0x07, 0xfe, /* max. length of cardholder certificate (2KB - 2)*/
|
0x07, 0xfe, /* max. length of cardholder certificate (2KB - 2)*/
|
||||||
|
#else
|
||||||
|
0x00, 0x00,
|
||||||
|
#endif
|
||||||
/* Max. length of command data */
|
/* Max. length of command data */
|
||||||
(MAX_CMD_APDU_SIZE>>8), (MAX_CMD_APDU_SIZE&0xff),
|
(MAX_CMD_APDU_SIZE>>8), (MAX_CMD_APDU_SIZE&0xff),
|
||||||
/* Max. length of response data */
|
/* Max. length of response data */
|
||||||
#if 0
|
#ifdef CERTDO_SUPPORT
|
||||||
(MAX_RES_APDU_SIZE>>8), (MAX_RES_APDU_SIZE&0xff),
|
|
||||||
#else
|
|
||||||
0x08, 0x00, /* the case of cardholder ceritificate */
|
0x08, 0x00, /* the case of cardholder ceritificate */
|
||||||
|
#else
|
||||||
|
(MAX_RES_APDU_SIZE>>8), (MAX_RES_APDU_SIZE&0xff),
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user