diff --git a/crypto/crypto.c b/crypto/crypto.c index d4c9a70461..578f5ebb35 100644 --- a/crypto/crypto.c +++ b/crypto/crypto.c @@ -115,11 +115,10 @@ void CRYPTO_pre_sandbox_init(void) { const char *SSLeay_version(int which) { return OpenSSL_version(which); } -#define AWS_LC_VERSION_TEXT AWSLC_VERSION_NAME " " AWSLC_VERSION_NUMBER_STRING const char *OpenSSL_version(int which) { switch (which) { case OPENSSL_VERSION: - return AWS_LC_VERSION_TEXT; + return AWSLC_VERSION_STRING; case OPENSSL_CFLAGS: return "compiler: n/a"; case OPENSSL_BUILT_ON: diff --git a/crypto/crypto_test.cc b/crypto/crypto_test.cc index 603355b5e6..4ef9da3a6c 100644 --- a/crypto/crypto_test.cc +++ b/crypto/crypto_test.cc @@ -22,6 +22,7 @@ #include #include #include +#include #include @@ -41,8 +42,7 @@ TEST(CryptoTest, Version) { full_expected += ")"; EXPECT_EQ(OPENSSL_VERSION_TEXT, full_expected); - full_expected = "AWS-LC "; - full_expected += AWSLC_VERSION_NUMBER_STRING; + full_expected = AWSLC_VERSION_STRING; std::string actual = std::string(OpenSSL_version(OPENSSL_VERSION)); EXPECT_EQ(actual, full_expected); }