mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 09:25:49 +00:00
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:
commit
998650e53a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user