otpcli.c: add more option combination validation checking
commit90afcddbaf0e1136411cd9499746aaf86038b485
authorKyle J. McKay <mackyle@gmail.com>
Fri, 18 Aug 2023 09:32:12 +0000 (18 02:32 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 18 Aug 2023 09:32:12 +0000 (18 02:32 -0700)
tree0a8e39dedf81cca522f3548fae6b561b888da400
parent3d7f137a72c9401001fa779f1150e92467806702
otpcli.c: add more option combination validation checking

Reject totp options when in hotp mode.

Require the current time (or -T value) to be at least as large as
the time 0 (-0 value) if given.

Ignore the -i option if the -T option is specified.
otpcli.c