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