summaryrefslogtreecommitdiffstats
path: root/movement/watch_faces/complication/totp_face.h
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2022-05-12 10:41:04 -0400
committerJoey Castillo <joeycastillo@utexas.edu>2022-05-12 10:41:04 -0400
commitcc4275694be97f365096eefb9b7513b41bcfdcd4 (patch)
tree6e01e00f549d8b982315551950ca21239044300b /movement/watch_faces/complication/totp_face.h
parented526355f69a931d51a6ebff1b45c70988e7b255 (diff)
downloadSensor-Watch-cc4275694be97f365096eefb9b7513b41bcfdcd4.tar.gz
Sensor-Watch-cc4275694be97f365096eefb9b7513b41bcfdcd4.tar.bz2
Sensor-Watch-cc4275694be97f365096eefb9b7513b41bcfdcd4.zip
WIP: totp watch face read from file
Diffstat (limited to 'movement/watch_faces/complication/totp_face.h')
-rw-r--r--movement/watch_faces/complication/totp_face.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/movement/watch_faces/complication/totp_face.h b/movement/watch_faces/complication/totp_face.h
index dfa4a6d0..c1376f94 100644
--- a/movement/watch_faces/complication/totp_face.h
+++ b/movement/watch_faces/complication/totp_face.h
@@ -4,10 +4,13 @@
#include "movement.h"
typedef struct {
+ char site_name[3];
+ uint8_t hmac_key[10];
uint32_t timestamp;
uint8_t steps;
uint32_t current_code;
-
+ uint8_t my_filename_index;
+ bool valid;
} totp_state_t;
void totp_face_setup(movement_settings_t *settings, uint8_t watch_face_index, void ** context_ptr);