29,027
社区成员
发帖
与我相关
我的任务
分享
#ifndef OTP_INTERFACE_H_
#define OTP_INTERFACE_H_
#define WIN32 1
#ifdef WIN32
typedef unsigned long long uint64_t;
#include <stdint.h>
typedef uint64_t authnum_t;
#define __stdcall
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define OTP_SUCCESS (0x00000000L)
#define OTP_ERR_INVALID_PARAMETER (0x00000001L)
#define OTP_ERR_CHECK_PWD (0x00000002L)
#define OTP_ERR_SYN_PWD (0x00000003L)
#define OTP_ERR_REPLAY (0x000000004)
int __stdcall ET_CheckPwdz201(char *authkey, uint64_t t, uint64_t t0,
unsigned int x, int drift, int authwnd, uint64_t lastsucc,
const char *otp, int otplen, uint64_t *currsucc, int *currdft);
#ifdef __cplusplus
}
#endif
#endif