mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Remove defines of EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_free
These functions defined since 0.9.8b
This commit is contained in:
parent
9bf8d361a1
commit
a24e29c9ad
@ -36,14 +36,6 @@ typedef struct _PACKET_HOLDER {
|
|||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
#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_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
|
#endif
|
||||||
|
|
||||||
// Initializes the input stream
|
// Initializes the input stream
|
||||||
|
Loading…
x
Reference in New Issue
Block a user