mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
12 lines
528 B
Diff
12 lines
528 B
Diff
diff --git a/src/libopensc/card-gids.c b/src/libopensc/card-gids.c
|
|
index 2471c55a..27576f99 100644
|
|
--- a/src/libopensc/card-gids.c
|
|
+++ b/src/libopensc/card-gids.c
|
|
@@ -1915,7 +1915,6 @@ static int gids_authenticate_admin(sc_card_t *card, u8* key) {
|
|
LOG_TEST_RET(card->ctx, r, "unable to set computer random");
|
|
|
|
// send it to the card
|
|
- memcpy(apduSetRandom+4, randomR1, 16);
|
|
sc_format_apdu(card, &apdu, SC_APDU_CASE_4, INS_GENERAL_AUTHENTICATE, 0x00, 0x00);
|
|
apdu.lc = sizeof(apduSetRandom);
|
|
apdu.data = apduSetRandom;
|