Update mbedtls to 2.5.1 (#3964)
* Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
This commit is contained in:
29
src/mbedTLS++/EntropyContext.cpp
Normal file
29
src/mbedTLS++/EntropyContext.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
|
||||
// EntropyContext.cpp
|
||||
|
||||
// Implements the cEntropyContext class representing a wrapper over entropy contexts in mbedTLS
|
||||
|
||||
#include "Globals.h"
|
||||
#include "EntropyContext.h"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cEntropyContext::cEntropyContext(void)
|
||||
{
|
||||
mbedtls_entropy_init(&m_Entropy);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
cEntropyContext::~cEntropyContext()
|
||||
{
|
||||
mbedtls_entropy_free(&m_Entropy);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user