A modern, portable, easy to use crypto library.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
387 B

#define TEST_NAME "sodium_version"
#include "cmptest.h"
int
main(void)
{
printf("%d\n", sodium_version_string() != NULL);
printf("%d\n", sodium_library_version_major() > 0);
printf("%d\n", sodium_library_version_minor() >= 0);
#ifdef SODIUM_LIBRARY_MINIMAL
assert(sodium_library_minimal() == 1);
#else
assert(sodium_library_minimal() == 0);
#endif
return 0;
}