Commits
- Commit:
604a321f5fbf3db2e50b41afdd4d25f2040658da
- From:
- Omar Polo <op@omarpolo.com>
- Date:
totp: remove some (good) BSD-isms (getprogname(), strtonum())
Don't want to add a configure script for this, so to aid portability
and avoid having to link to libbsd pretend we don't have these two
niceties.
err/warn are still in use and won't be removed.
- Commit:
a5b7d2ee6d1236a736b18435862982f602f9372c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
totp: support changing the period too
- Commit:
d2c2e549cfd016d1e2f7a748a55a1c2541ba2787
- From:
- Omar Polo <op@omarpolo.com>
- Date:
totp: support other algorithms too
- Commit:
efd5f30cbef5c230de05502bcb840974b023afe1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add support for the `digits' query argument
allow to print also 7 and 8 digits long codes in addition to the
current defaut of 6.
Requested by heph
- Commit:
50705614759a8daead0fad31999ee592be999b83
- From:
- Omar Polo <op@omarpolo.com>
- Date:
for completeness, percent-decode the secret if needed
it shouldn't EVER be needed, but since we handle URIs we should
tick this box too.
- Commit:
44703d29ff87d414604a05fc14a5621d34ba1c39
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rework uri2secret to handle (in the future) other params too
- Commit:
9bf09c65bfe309eefd6c75a955fd732a67357c53
- From:
- Omar Polo <op@omarpolo.com>
- Date:
netbsd seems to have sys/endian.h too
- Commit:
f31cd5a448ae963454d16aeaaf1766feff159bfa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
totp: extract the secret from otpauth:// URIs
More often than not, services provide the URI for TOTP and not the raw
secret. While it's easy to manually extract the secret from the
querystring, teach totp how to do that on behalf of the user.
Manpage bits will follow.
Discussed with heph.
- Commit:
cc5f172ad7e0a7bbbce9083d8416e2e29d9cc2b1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify b32decode; no functional change
no need to take an explicit length parameter when we can just advance
the string until a NUL byte. base32 doesn't allow NUL bytes.
- Commit:
ecf69ddfaf6785ad1d8a1dbc59fef74df90291a2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a companion TOTP utility