]> www.average.org Git - pam_pcsc_cr.git/blob - authobj.h
8478d95ef4680a5228d0e72dc8b8fbbba3c33d61
[pam_pcsc_cr.git] / authobj.h
1 #ifndef _AUTHOBJ_H
2 #define _AUTHOBJ_H
3
4 int make_challenge(const char *id, const char *pass, const char *nonce,
5                 unsigned char *challenge, int *challengesize);
6 int make_authobj(const char *id, const char *pass, const char *nonce,
7                 const unsigned char *secret, const int secsize,
8                 const unsigned char *payload, const int paysize,
9                 unsigned char *buffer, int *bufsize);
10 int parse_authobj(const unsigned char *key, const int keysize,
11                 const unsigned char *buffer, const int bufsize,
12                 unsigned char *secret, int *secsize,
13                 unsigned char *payload, int *paysize);
14
15 #endif