otp.h
author Ryan C. Gordon <icculus@icculus.org>
Sun, 18 Jun 2017 19:40:30 -0400
changeset 56 a573346e6f7b
permissions -rw-r--r--
Added One Time Password support.

This is only for time-based OTP for now ("TOPT" algorithm), but that's more
or less what one expects to see in the wild anyhow.

This is sort of a placeholder UI until I replace the entire existing UI with
something better.
icculus@56
     1
#ifndef _OTP_H_
icculus@56
     2
#define _OTP_H_
icculus@56
     3
icculus@56
     4
int totp(const char *base32_secret, char *dst, int dstlen);
icculus@56
     5
icculus@56
     6
#endif
icculus@56
     7
icculus@56
     8
/* end of otp.h ... */
icculus@56
     9