diff options
author | Christian Pointner <equinox@spreadspace.org> | 2013-02-07 05:32:39 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2013-02-07 05:32:39 +0000 |
commit | aac95eda6b1b817af65f183341c86144c7fed286 (patch) | |
tree | 2fccca465f2651e8d3e9b7abfd9c08b2406fd249 /usb-i2c-sl018 | |
parent | naming conventions for ajar (diff) |
naming conventions for keystore
git-svn-id: https://svn.spreadspace.org/avr/trunk@185 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-i2c-sl018')
-rw-r--r-- | usb-i2c-sl018/keystore.c | 4 | ||||
-rw-r--r-- | usb-i2c-sl018/keystore.h | 4 | ||||
-rw-r--r-- | usb-i2c-sl018/tuer-rfid.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/usb-i2c-sl018/keystore.c b/usb-i2c-sl018/keystore.c index c37dfb3..645f25a 100644 --- a/usb-i2c-sl018/keystore.c +++ b/usb-i2c-sl018/keystore.c @@ -34,7 +34,7 @@ typedef uint8_t keyslot_t[8]; keyslot_t EEMEM keystore[EEPROM_SIZE/sizeof(keyslot_t)]; -void flash_keystore_from_stdio(void) +void keystore_flash_from_stdio(void) { keyslot_t ks; uint8_t byte_pos=0; @@ -62,7 +62,7 @@ void flash_keystore_from_stdio(void) led_off(); } -void dump_keystore_to_stdio(void) +void keystore_dump_to_stdio(void) { keyslot_t ks; for(uint8_t ks_pos=0;ks_pos<EEPROM_SIZE/sizeof(ks);ks_pos++) { diff --git a/usb-i2c-sl018/keystore.h b/usb-i2c-sl018/keystore.h index b2adfd6..243ab5c 100644 --- a/usb-i2c-sl018/keystore.h +++ b/usb-i2c-sl018/keystore.h @@ -26,8 +26,8 @@ #include <stdint.h> -void flash_keystore_from_stdio(void); -void dump_keystore_to_stdio(void); +void keystore_flash_from_stdio(void); +void keystore_dump_to_stdio(void); uint8_t keystore_check_card(const uint8_t * uid, uint8_t uid_len); #endif diff --git a/usb-i2c-sl018/tuer-rfid.c b/usb-i2c-sl018/tuer-rfid.c index dcb1224..f3cf21b 100644 --- a/usb-i2c-sl018/tuer-rfid.c +++ b/usb-i2c-sl018/tuer-rfid.c @@ -63,10 +63,10 @@ void handle_cmd(uint8_t cmd) break; } case 'e': //flash eeprom - flash_keystore_from_stdio(); + keystore_flash_from_stdio(); break; case 'd': //dump eeprom - this breaks security! - dump_keystore_to_stdio(); + keystore_dump_to_stdio(); break; case 'o': eventqueue_push(cmd_open); |