Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: webrtc/base/openssldigest.h

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/openssladapter.cc ('k') | webrtc/base/openssldigest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « webrtc/base/openssladapter.cc ('k') | webrtc/base/openssldigest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698