Changeset View
Changeset View
Standalone View
Standalone View
protocols/jabber/libjingle/talk/base/openssldigest.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 39 | public: | |||
---|---|---|---|---|---|
50 | // Helper function to look up a digest. | 50 | // Helper function to look up a digest. | ||
51 | static bool GetDigestEVP(const std::string &algorithm, | 51 | static bool GetDigestEVP(const std::string &algorithm, | ||
52 | const EVP_MD** md); | 52 | const EVP_MD** md); | ||
53 | // Helper function to get the length of a digest. | 53 | // Helper function to get the length of a digest. | ||
54 | static bool GetDigestSize(const std::string &algorithm, | 54 | static bool GetDigestSize(const std::string &algorithm, | ||
55 | size_t* len); | 55 | size_t* len); | ||
56 | 56 | | |||
57 | private: | 57 | private: | ||
58 | EVP_MD_CTX ctx_; | 58 | EVP_MD_CTX* ctx_ = EVP_MD_CTX_create(); | ||
59 | const EVP_MD* md_; | 59 | const EVP_MD* md_; | ||
60 | }; | 60 | }; | ||
61 | 61 | | |||
62 | } // namespace talk_base | 62 | } // namespace talk_base | ||
63 | 63 | | |||
64 | #endif // TALK_BASE_OPENSSLDIGEST_H_ | 64 | #endif // TALK_BASE_OPENSSLDIGEST_H_ |