Merge pull request #26 from d3m3vilurr/fix-build-openssl-1.0.x

Remove defines of EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_free
This commit is contained in:
Cameron Gutman 2017-05-06 16:08:45 -07:00 committed by GitHub
commit 998650e53a

View File

@ -36,14 +36,6 @@ typedef struct _PACKET_HOLDER {
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#define EVP_CIPHER_CTX_reset(x) EVP_CIPHER_CTX_cleanup(x); EVP_CIPHER_CTX_init(x)
#define EVP_CIPHER_CTX_free(x) EVP_CIPHER_CTX_cleanup(x)
static EVP_CIPHER_CTX preallocatedCipherContext;
EVP_CIPHER_CTX* EVP_CIPHER_CTX_new() {
EVP_CIPHER_CTX_init(&preallocatedCipherContext);
return &preallocatedCipherContext;
}
#endif
// Initializes the input stream