mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-22 06:27:51 +00:00
63d5cec1c6
git subtree add --squash --prefix libsodium git@github.com:jedisct1/libsodium.git 1.0.13 git commit --amend (to rewrite this commit message)
19 lines
387 B
C
19 lines
387 B
C
|
|
#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;
|
|
}
|