diff options
| author | David M. Syzdek <david@syzdek.net> | 2023-01-09 06:04:09 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2023-01-09 06:04:09 -0900 |
| commit | 6f123268191caaa43bba236b0710a47b8aa91327 (patch) | |
| tree | be64801a75c099350d0051b1e814617191ca6cef | |
| parent | 267e2c8cbaae77a6ec60078c20acc7d2db974250 (diff) | |
| download | otputils-6f123268191caaa43bba236b0710a47b8aa91327.tar.gz otputils-6f123268191caaa43bba236b0710a47b8aa91327.tar.bz2 otputils-6f123268191caaa43bba236b0710a47b8aa91327.tar.xz otputils-6f123268191caaa43bba236b0710a47b8aa91327.zip | |
libotputil: re-ordering switch statement in otputil_code()
| -rw-r--r-- | lib/libotputil/libotputil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libotputil/libotputil.c b/lib/libotputil/libotputil.c index 381b473..f896f9c 100644 --- a/lib/libotputil/libotputil.c +++ b/lib/libotputil/libotputil.c | |||
| @@ -754,12 +754,12 @@ otputil_code( | |||
| 754 | 754 | ||
| 755 | switch(tud->otp_method) | 755 | switch(tud->otp_method) |
| 756 | { | 756 | { |
| 757 | case OTPUTIL_METH_TOTP: | ||
| 758 | return(otputil_totp_code(hotp_k, tud->totp_t0, tud->totp_tx, tud->totp_time, (int)tud->totp_hmac, (int)tud->totp_digits)); | ||
| 759 | |||
| 760 | case OTPUTIL_METH_HOTP: | 757 | case OTPUTIL_METH_HOTP: |
| 761 | return(otputil_hotp_code(hotp_k, tud->hotp_c, (int)tud->hotp_hmac, (int)tud->hotp_digits)); | 758 | return(otputil_hotp_code(hotp_k, tud->hotp_c, (int)tud->hotp_hmac, (int)tud->hotp_digits)); |
| 762 | 759 | ||
| 760 | case OTPUTIL_METH_TOTP: | ||
| 761 | return(otputil_totp_code(hotp_k, tud->totp_t0, tud->totp_tx, tud->totp_time, (int)tud->totp_hmac, (int)tud->totp_digits)); | ||
| 762 | |||
| 763 | default: | 763 | default: |
| 764 | break; | 764 | break; |
| 765 | }; | 765 | }; |
