From fa559d2f999ecc61176154e656962985e292fbb5 Mon Sep 17 00:00:00 2001 From: laforge Date: Sun, 24 Feb 2008 12:35:52 +0000 Subject: add function to set mifare key from internal eeprom git-svn-id: https://svn.gnumonks.org/trunk/librfid@2086 e0336214-984f-0b4b-a45f-81c69e1f0ede --- include/librfid/rfid_asic_rc632.h | 2 ++ include/librfid/rfid_reader.h | 1 + 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/librfid/rfid_asic_rc632.h b/include/librfid/rfid_asic_rc632.h index c78a720..d8adac7 100644 --- a/include/librfid/rfid_asic_rc632.h +++ b/include/librfid/rfid_asic_rc632.h @@ -65,6 +65,8 @@ struct rfid_asic_rc632 { struct { int (*setkey)(struct rfid_asic_handle *h, const unsigned char *key); + int (*setkey_ee)(struct rfid_asic_handle *h, + const unsigned int addr); int (*auth)(struct rfid_asic_handle *h, u_int8_t cmd, u_int32_t serno, u_int8_t block); } mifare_classic; diff --git a/include/librfid/rfid_reader.h b/include/librfid/rfid_reader.h index 1c53677..27bcef3 100644 --- a/include/librfid/rfid_reader.h +++ b/include/librfid/rfid_reader.h @@ -70,6 +70,7 @@ struct rfid_reader { } iso15693; struct rfid_mifare_classic_reader { int (*setkey)(struct rfid_reader_handle *h, const unsigned char *key); + int (*setkey_ee)(struct rfid_reader_handle *h, const unsigned int addr); int (*auth)(struct rfid_reader_handle *h, u_int8_t cmd, u_int32_t serno, u_int8_t block); } mifare_classic; -- cgit v1.2.3