Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/8
25 lines
417 B
C
25 lines
417 B
C
#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;
|
|
}
|