summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-27 20:53:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-27 20:53:00 +0100
commit7a08e6823ef636917a95dbc4928048723efe864d (patch)
tree3faa824113cb3ddbc9c2b734107db1d5ec3c5c07 /src/fastd.h
parentba5abca808dc85e2de2e11351832329f1566bc7e (diff)
downloadfastd-7a08e6823ef636917a95dbc4928048723efe864d.tar
fastd-7a08e6823ef636917a95dbc4928048723efe864d.zip
Allow checking if a crypto algorithm is available at runtime
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 012d532..237af4b 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -358,7 +358,6 @@ static inline int fastd_rand(fastd_context_t *ctx, int min, int max) {
return (r%(max-min) + min);
}
-
#define FASTD_DEFAULT_LOG_LEVEL LL_VERBOSE
@@ -519,4 +518,8 @@ static inline void xor_a(fastd_block128_t *x, const fastd_block128_t *a) {
xor(x, x, a);
}
+static inline bool fastd_true(void) {
+ return true;
+}
+
#endif /* _FASTD_FASTD_H_ */