otpcli.c: implement totp mode
commit1f1be1f67aed11f5249eff38fd4e6ff7dabec523
authorKyle J. McKay <mackyle@gmail.com>
Fri, 18 Aug 2023 10:53:29 +0000 (18 03:53 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 18 Aug 2023 10:53:29 +0000 (18 03:53 -0700)
tree6f40af3476f7b276ed650f315acd91dd668f3b73
parent3ea2345721d7b9b91834c56a0072d4e0ef78019e
otpcli.c: implement totp mode

Add the simple modifications needed to implement time-based one time
password mode based on the HMAC-based one time password mode code.

At present the interactive mode (-i) has not yet been implemented.
otpcli.c