diff --git a/tests/unit/switch_core.c b/tests/unit/switch_core.c index 4c302ea7aa..e51c4e2b1d 100644 --- a/tests/unit/switch_core.c +++ b/tests/unit/switch_core.c @@ -95,6 +95,19 @@ FST_CORE_BEGIN("./conf") FST_TEST_END() #endif + FST_TEST_BEGIN(test_md5) + { + char digest[SWITCH_MD5_DIGEST_STRING_SIZE] = { 0 }; + char test_string[] = "test"; + switch_status_t status; + + status = switch_md5_string(digest, (void *)test_string, strlen(test_string)); + + fst_check_int_equals(status, SWITCH_STATUS_SUCCESS); + fst_check_string_equals(digest, "098f6bcd4621d373cade4e832627b4f6"); + } + FST_TEST_END() + FST_TEST_BEGIN(test_switch_event_add_header_leak) { switch_event_t* event; diff --git a/w32/openssl.props b/w32/openssl.props index c3eaa3632b..aa31668a75 100644 --- a/w32/openssl.props +++ b/w32/openssl.props @@ -68,7 +68,7 @@ $(OpenSSLLibDir)\include;%(AdditionalIncludeDirectories) $(OpenSSLLibDir)\include_x86;%(AdditionalIncludeDirectories) $(OpenSSLLibDir)\include_x64;%(AdditionalIncludeDirectories) - OPENSSL;HAVE_OPENSSL;HAVE_OPENSSL_DTLS_SRTP;HAVE_OPENSSL_DTLS;HAVE_OPENSSL_DTLSv1_2_method;%(PreprocessorDefinitions) + HAVE_LIBCRYPTO;OPENSSL;HAVE_OPENSSL;HAVE_OPENSSL_DTLS_SRTP;HAVE_OPENSSL_DTLS;HAVE_OPENSSL_DTLSv1_2_method;%(PreprocessorDefinitions) $(OpenSSLLibDir)\binaries\$(Platform)\$(LibraryConfiguration)\;%(AdditionalLibraryDirectories)