xref: /freebsd/sys/contrib/libsodium/src/libsodium/sodium/version.c (revision 3611ec604864a7d4dcc9a3ea898c80eb35eef8a0)
1 
2 #include "version.h"
3 
4 const char *
sodium_version_string(void)5 sodium_version_string(void)
6 {
7     return SODIUM_VERSION_STRING;
8 }
9 
10 int
sodium_library_version_major(void)11 sodium_library_version_major(void)
12 {
13     return SODIUM_LIBRARY_VERSION_MAJOR;
14 }
15 
16 int
sodium_library_version_minor(void)17 sodium_library_version_minor(void)
18 {
19     return SODIUM_LIBRARY_VERSION_MINOR;
20 }
21 
22 int
sodium_library_minimal(void)23 sodium_library_minimal(void)
24 {
25 #ifdef SODIUM_LIBRARY_MINIMAL
26     return 1;
27 #else
28     return 0;
29 #endif
30 }
31