summaryrefslogtreecommitdiff
path: root/libs/libsodium/src/sodium/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libsodium/src/sodium/version.c')
-rw-r--r--libs/libsodium/src/sodium/version.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/libs/libsodium/src/sodium/version.c b/libs/libsodium/src/sodium/version.c
new file mode 100644
index 0000000000..4e584a6ea0
--- /dev/null
+++ b/libs/libsodium/src/sodium/version.c
@@ -0,0 +1,30 @@
+
+#include "version.h"
+
+const char *
+sodium_version_string(void)
+{
+ return SODIUM_VERSION_STRING;
+}
+
+int
+sodium_library_version_major(void)
+{
+ return SODIUM_LIBRARY_VERSION_MAJOR;
+}
+
+int
+sodium_library_version_minor(void)
+{
+ return SODIUM_LIBRARY_VERSION_MINOR;
+}
+
+int
+sodium_library_minimal(void)
+{
+#ifdef SODIUM_LIBRARY_MINIMAL
+ return 1;
+#else
+ return 0;
+#endif
+}