summaryrefslogtreecommitdiff
path: root/openpicc/application/iso14443a_pretender.h
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-04-28 16:24:08 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2008-04-28 16:24:08 +0000
commit640d692258d118779a184bbd512f979fe2b1f891 (patch)
tree3016806135ba2225ce2fe3f0a553eef122d69797 /openpicc/application/iso14443a_pretender.h
parent64dfc1c67cb3e7c841836a8cda915ced07892330 (diff)
Check received length of the frame that is supposed to contain the PCD challenge
Add code to get/set uid/nonce git-svn-id: https://svn.openpcd.org:2342/trunk@474 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/application/iso14443a_pretender.h')
-rw-r--r--openpicc/application/iso14443a_pretender.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/openpicc/application/iso14443a_pretender.h b/openpicc/application/iso14443a_pretender.h
index 0d7042b..ad4ac5b 100644
--- a/openpicc/application/iso14443a_pretender.h
+++ b/openpicc/application/iso14443a_pretender.h
@@ -2,6 +2,11 @@
#define ISO14443A_PRETENDER_H_
extern void iso14443a_pretender (void *pvParameters);
+
extern int set_UID(u_int8_t *uid, size_t len);
+extern int get_UID(u_int8_t *uid, size_t len);
+
+extern int set_nonce(u_int8_t *uid, size_t len);
+extern int get_nonce(u_int8_t *uid, size_t len);
#endif /*ISO14443A_PRETENDER_H_*/
personal git repositories of Harald Welte. Your mileage may vary