Index: webrtc/base/openssldigest.h |
diff --git a/webrtc/base/openssldigest.h b/webrtc/base/openssldigest.h |
index 413df45145e3c780ac4247d8573d23b4c7e1ba05..031c0b1cb0af77abfa2e72cb4d70e15847cdcd5a 100644 |
--- a/webrtc/base/openssldigest.h |
+++ b/webrtc/base/openssldigest.h |
@@ -11,40 +11,9 @@ |
#ifndef WEBRTC_BASE_OPENSSLDIGEST_H_ |
#define WEBRTC_BASE_OPENSSLDIGEST_H_ |
-#include <openssl/evp.h> |
-#include "webrtc/base/messagedigest.h" |
- |
-namespace rtc { |
- |
-// An implementation of the digest class that uses OpenSSL. |
-class OpenSSLDigest : public MessageDigest { |
- public: |
- // Creates an OpenSSLDigest with |algorithm| as the hash algorithm. |
- explicit OpenSSLDigest(const std::string& algorithm); |
- ~OpenSSLDigest() override; |
- // Returns the digest output size (e.g. 16 bytes for MD5). |
- size_t Size() const override; |
- // Updates the digest with |len| bytes from |buf|. |
- void Update(const void* buf, size_t len) override; |
- // Outputs the digest value to |buf| with length |len|. |
- size_t Finish(void* buf, size_t len) override; |
- |
- // Helper function to look up a digest's EVP by name. |
- static bool GetDigestEVP(const std::string &algorithm, |
- const EVP_MD** md); |
- // Helper function to look up a digest's name by EVP. |
- static bool GetDigestName(const EVP_MD* md, |
- std::string* algorithm); |
- // Helper function to get the length of a digest. |
- static bool GetDigestSize(const std::string &algorithm, |
- size_t* len); |
- |
- private: |
- EVP_MD_CTX ctx_; |
- const EVP_MD* md_; |
-}; |
- |
-} // namespace rtc |
+// This header is deprecated and is just left here temporarily during |
+// refactoring. See https://bugs.webrtc.org/7634 for more details. |
+#include "webrtc/rtc_base/openssldigest.h" |
#endif // WEBRTC_BASE_OPENSSLDIGEST_H_ |