aboutsummaryrefslogtreecommitdiff
path: root/challenge.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2017-12-17 18:16:46 +0100
committerToni Uhlig <matzeton@googlemail.com>2017-12-17 18:16:46 +0100
commit14bc884b105926ea75efa6d521699cb1802d9882 (patch)
tree714628c710f7cc7cbe09847b3882cb3c08029d3a /challenge.h
parentfb7af94ba14fcb19bc35d44e9178d4bb55a93e2f (diff)
ptunnel-ng:
* source refactoring * challenge response exported to module
Diffstat (limited to 'challenge.h')
-rw-r--r--challenge.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge.h b/challenge.h
index 7bfd68c..4863782 100644
--- a/challenge.h
+++ b/challenge.h
@@ -15,4 +15,9 @@ typedef struct challenge_t {
uint32_t random[6];
} __attribute__ ((packed)) challenge_t;
+
+challenge_t* generate_challenge(void);
+void generate_response(challenge_t *challenge);
+int validate_challenge(challenge_t *local, challenge_t *remote);
+
#endif