diff options
| author | David M. Syzdek <david@syzdek.net> | 2023-01-09 23:44:15 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2023-01-09 23:44:15 -0900 |
| commit | f7b1ff631c1331667b73458ce6711adf0ea9d859 (patch) | |
| tree | 3f69b490fe70b4022a0a609497654a3d0441e29d /include | |
| parent | 7e5f22309800eaea1c7965f02dcb3e81d654e894 (diff) | |
| download | otputils-f7b1ff631c1331667b73458ce6711adf0ea9d859.tar.gz otputils-f7b1ff631c1331667b73458ce6711adf0ea9d859.tar.bz2 otputils-f7b1ff631c1331667b73458ce6711adf0ea9d859.tar.xz otputils-f7b1ff631c1331667b73458ce6711adf0ea9d859.zip | |
libotputil: adding stub for otputil_otp_decode()
Diffstat (limited to 'include')
| -rw-r--r-- | include/otputil.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/otputil.h b/include/otputil.h index 88b3708..6af498d 100644 --- a/include/otputil.h +++ b/include/otputil.h | |||
| @@ -164,6 +164,7 @@ | |||
| 164 | #define OTPUTIL_MAX_CODE_SIZE 16 | 164 | #define OTPUTIL_MAX_CODE_SIZE 16 |
| 165 | #define OTPUTIL_MAX_ENCODE_SIZE 128 | 165 | #define OTPUTIL_MAX_ENCODE_SIZE 128 |
| 166 | #define OTPUTIL_MAX_DECODE_SIZE 128 | 166 | #define OTPUTIL_MAX_DECODE_SIZE 128 |
| 167 | #define OTPUTIL_MAX_WORD_SIZE 8 | ||
| 167 | 168 | ||
| 168 | 169 | ||
| 169 | ///////////////// | 170 | ///////////////// |
| @@ -340,6 +341,12 @@ otputil_hotp_str( | |||
| 340 | //---------------// | 341 | //---------------// |
| 341 | #pragma mark OTP functions (RFC 2289) | 342 | #pragma mark OTP functions (RFC 2289) |
| 342 | 343 | ||
| 344 | _OTPUTIL_F otputil_bv_t * | ||
| 345 | otputil_otp_decode( | ||
| 346 | const char * src, | ||
| 347 | otputil_bv_t * dst ); | ||
| 348 | |||
| 349 | |||
| 343 | _OTPUTIL_F size_t | 350 | _OTPUTIL_F size_t |
| 344 | otputil_otp_decode_len( | 351 | otputil_otp_decode_len( |
| 345 | const char * str ); | 352 | const char * str ); |
