X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=authobj.h;fp=authobj.h;h=c2da50450adb4b13858de0b9ab1bb68c30bf626c;hp=0000000000000000000000000000000000000000;hb=8e164eeff8c7d7f08b473d37ebb01093f574d6a2;hpb=0e1a2e8a78cb806312813c7c944660cdb63233b7 diff --git a/authobj.h b/authobj.h new file mode 100644 index 0000000..c2da504 --- /dev/null +++ b/authobj.h @@ -0,0 +1,13 @@ +#ifndef _AUTHOBJ_H +#define _AUTHOBJ_H + +int make_authobj(const char *id, const char *pass, const char *nonce, + const unsigned char *secret, const int secsize, + const unsigned char *payload, const int paysize, + unsigned char *buffer, int *bufsize); +int parse_authobj(const unsigned char *hmacdata, const int hmacdatasize, + const unsigned char *buffer, const int bufsize, + unsigned char *secret, int *secsize, + unsigned char *payload, int *paysize); + +#endif