diff options
Diffstat (limited to 'chromium/third_party/libjingle/source/talk/base/openssldigest.cc')
-rw-r--r-- | chromium/third_party/libjingle/source/talk/base/openssldigest.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chromium/third_party/libjingle/source/talk/base/openssldigest.cc b/chromium/third_party/libjingle/source/talk/base/openssldigest.cc index 3d9276de844..3d0d227e67c 100644 --- a/chromium/third_party/libjingle/source/talk/base/openssldigest.cc +++ b/chromium/third_party/libjingle/source/talk/base/openssldigest.cc @@ -30,6 +30,7 @@ #include "talk/base/openssldigest.h" #include "talk/base/common.h" +#include "talk/base/openssl.h" namespace talk_base { @@ -78,7 +79,6 @@ bool OpenSSLDigest::GetDigestEVP(const std::string& algorithm, md = EVP_md5(); } else if (algorithm == DIGEST_SHA_1) { md = EVP_sha1(); -#if OPENSSL_VERSION_NUMBER >= 0x00908000L } else if (algorithm == DIGEST_SHA_224) { md = EVP_sha224(); } else if (algorithm == DIGEST_SHA_256) { @@ -87,7 +87,6 @@ bool OpenSSLDigest::GetDigestEVP(const std::string& algorithm, md = EVP_sha384(); } else if (algorithm == DIGEST_SHA_512) { md = EVP_sha512(); -#endif } else { return false; } @@ -108,7 +107,6 @@ bool OpenSSLDigest::GetDigestName(const EVP_MD* md, *algorithm = DIGEST_MD5; } else if (md_type == NID_sha1) { *algorithm = DIGEST_SHA_1; -#if OPENSSL_VERSION_NUMBER >= 0x00908000L } else if (md_type == NID_sha224) { *algorithm = DIGEST_SHA_224; } else if (md_type == NID_sha256) { @@ -117,7 +115,6 @@ bool OpenSSLDigest::GetDigestName(const EVP_MD* md, *algorithm = DIGEST_SHA_384; } else if (md_type == NID_sha512) { *algorithm = DIGEST_SHA_512; -#endif } else { algorithm->clear(); return false; |