summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2008-02-24 12:35:52 +0000
committerlaforge <laforge@e0336214-984f-0b4b-a45f-81c69e1f0ede>2008-02-24 12:35:52 +0000
commitfa559d2f999ecc61176154e656962985e292fbb5 (patch)
treeed300a989e1a97ffde23c9873a29d662784be6db /include
parent292444f20bb8892f419bac3d84d1c0baa6a1c6af (diff)
add function to set mifare key from internal eeprom
git-svn-id: https://svn.gnumonks.org/trunk/librfid@2086 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'include')
-rw-r--r--include/librfid/rfid_asic_rc632.h2
-rw-r--r--include/librfid/rfid_reader.h1
2 files changed, 3 insertions, 0 deletions
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;
personal git repositories of Harald Welte. Your mileage may vary