From 2ec4f668a911cb752aa6a6bfd1351c965dc8ab64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 3 Mar 2013 23:34:50 +0000 Subject: [PATCH] Add prototypes for the functions in oath_key.c. git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@638 185d5e19-27fe-0310-9dcf-9bff6b9f3609 --- modules/pam_oath/oath.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/pam_oath/oath.h b/modules/pam_oath/oath.h index 08e520a..ffd28c0 100644 --- a/modules/pam_oath/oath.h +++ b/modules/pam_oath/oath.h @@ -95,6 +95,12 @@ struct oath_key { uint8_t data[]; }; +struct oath_key *oath_key_alloc(size_t); +void oath_key_free(struct oath_key *); +struct oath_key *oath_key_from_uri(const char *); +struct oath_key *oath_key_from_file(const char *); +char *oath_key_to_uri(const struct oath_key *); + unsigned int oath_hotp(const uint8_t *, size_t, uint64_t, unsigned int); unsigned int oath_totp(const uint8_t *, size_t, unsigned int);