adapted to changes of OpenSC master
Now works with the stupid changes of OpenSC made in 41861e42b01539856b31f758dfde9ba53749eaaa
This commit is contained in:
@@ -1240,8 +1240,9 @@ int EstablishPACEChannel(struct sm_ctx *oldnpactx, sc_card_t *card,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (card->reader->capabilities & SC_READER_CAP_PACE_GENERIC) {
|
if (card->reader->capabilities & SC_READER_CAP_PACE_GENERIC
|
||||||
r = sc_perform_pace(card, &pace_input, pace_output);
|
&& card->reader->ops->perform_pace) {
|
||||||
|
r = card->reader->ops->perform_pace(card->reader, &pace_input, pace_output);
|
||||||
} else {
|
} else {
|
||||||
if (!pace_output->ef_cardaccess_length || !pace_output->ef_cardaccess) {
|
if (!pace_output->ef_cardaccess_length || !pace_output->ef_cardaccess) {
|
||||||
r = get_ef_card_access(oldnpactx, card, &pace_output->ef_cardaccess,
|
r = get_ef_card_access(oldnpactx, card, &pace_output->ef_cardaccess,
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
#include <eac/eac.h>
|
#include <eac/eac.h>
|
||||||
#include <eac/pace.h>
|
#include <eac/pace.h>
|
||||||
#include <libopensc/opensc.h>
|
#include <libopensc/opensc.h>
|
||||||
|
#include <libopensc/pace.h>
|
||||||
#include <npa/sm.h>
|
#include <npa/sm.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Reference in New Issue
Block a user