[DO-978] openssl package (!8)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/8
This commit is contained in:
24
recipes/openssl/3.x.x/test_package/test_package.c
Normal file
24
recipes/openssl/3.x.x/test_package/test_package.c
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <stdio.h>
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
void digest();
|
||||
int digest_legacy();
|
||||
|
||||
int main()
|
||||
{
|
||||
int legacy_result = 0;
|
||||
OPENSSL_init_ssl(0, NULL);
|
||||
printf("OpenSSL version: %s\n", OpenSSL_version(OPENSSL_VERSION));
|
||||
|
||||
digest();
|
||||
|
||||
#if defined(TEST_OPENSSL_LEGACY)
|
||||
legacy_result = digest_legacy();
|
||||
if (legacy_result != 0) {
|
||||
printf("Error testing the digest_legacy() function\n");
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user