Remove defines of EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_free

These functions defined since 0.9.8b
This commit is contained in:
Sunguk Lee 2017-05-05 15:27:47 +09:00
parent 9bf8d361a1
commit a24e29c9ad
No known key found for this signature in database
GPG Key ID: 20A74A5D37EEA757

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