[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:
Aleksandr Vodyanov
2024-12-24 15:00:28 +03:00
parent 3aa73be75d
commit e58f90de0e
29 changed files with 2563 additions and 0 deletions

View 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;
}