diff options
| author | David M. Syzdek <david@syzdek.net> | 2023-01-17 09:45:38 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2023-01-17 09:45:38 -0900 |
| commit | bd8f111990ae2a1ee1b5fb741605a5e3a968add7 (patch) | |
| tree | 4d25f9f5d74e28cf61d671b4579e3fa6091b3688 /src/otputil.c | |
| parent | c97c4330aa7e9894bc1a42e405f3160f52b117d9 (diff) | |
| download | otputils-bd8f111990ae2a1ee1b5fb741605a5e3a968add7.tar.gz otputils-bd8f111990ae2a1ee1b5fb741605a5e3a968add7.tar.bz2 otputils-bd8f111990ae2a1ee1b5fb741605a5e3a968add7.tar.xz otputils-bd8f111990ae2a1ee1b5fb741605a5e3a968add7.zip | |
otputil: adding TOTP widget aliases
Diffstat (limited to 'src/otputil.c')
| -rw-r--r-- | src/otputil.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/otputil.c b/src/otputil.c index 7f2ca4d..134f2e2 100644 --- a/src/otputil.c +++ b/src/otputil.c | |||
| @@ -233,6 +233,16 @@ static otputil_widget_t otputil_widget_map[] = | |||
| 233 | .func_exec = &otputil_widget_totp, | 233 | .func_exec = &otputil_widget_totp, |
| 234 | .func_usage = NULL, | 234 | .func_usage = NULL, |
| 235 | }, | 235 | }, |
| 236 | { .name = "totp-sha1", | ||
| 237 | .desc = NULL, | ||
| 238 | .usage = " [ code ]", | ||
| 239 | .short_opt = (TOTP_SHORT_OPT "d:k:O:oT:t:x:"), | ||
| 240 | .arg_min = 0, | ||
| 241 | .arg_max = 1, | ||
| 242 | .aliases = (const char *[]){ "totp-sha256", "totp-sha512", NULL }, | ||
| 243 | .func_exec = &otputil_widget_totp, | ||
| 244 | .func_usage = NULL, | ||
| 245 | }, | ||
| 236 | 246 | ||
| 237 | // version widget | 247 | // version widget |
| 238 | { .name = "version", | 248 | { .name = "version", |
