From: voloved <36523934+voloved@users.noreply.github.com> Date: Wed, 1 Apr 2026 20:42:04 +0000 (-0400) Subject: Merge pull request #107 from mkende/safe_totp X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=4f9d7b721971dec957c9e97236e290864d08fc2a;p=sensor-watch.git Merge pull request #107 from mkende/safe_totp Allow to pass secrets to totp_face through a separate (ignored) header. --- 4f9d7b721971dec957c9e97236e290864d08fc2a diff --cc watch-faces/complication/totp_face.c index fdec056,d8ec461..f405da8 --- a/watch-faces/complication/totp_face.c +++ b/watch-faces/complication/totp_face.c @@@ -63,10 -64,14 +63,14 @@@ typedef struct //////////////////////////////////////////////////////////////////////////////// // Enter your TOTP key data below + #if __has_include("totp_face.secrets.h") + #include "totp_face.secrets.h" + #else static totp_t credentials[] = { CREDENTIAL(2F, "JBSWY3DPEHPK3PXP", SHA1, 30), - CREDENTIAL(AC, "JBSWY3DPEHPK3PXP", SHA1, 30), + CREDENTIAL(AAC, "JBSWY3DPEHPK3PXP", SHA1, 30), }; + #endif // END OF KEY DATA. ////////////////////////////////////////////////////////////////////////////////