]> www.average.org Git - pam_pcsc_cr.git/blobdiff - authobj.h
introduce authobj
[pam_pcsc_cr.git] / authobj.h
diff --git a/authobj.h b/authobj.h
new file mode 100644 (file)
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