Please sign in to comment.
lib/libdmsg: Unbreak using new API EVP_CIPHER_CTX_new()
The upstream OpenSSL no longer publicly expose definition of EVP_CIPHER_CTX (struct evp_cipher_ctx_st). Due to this change clients need to have it as a pointer instead of as a value, and allocate or free EVP_CIPHER_CTX instance by EVP_CIPHER_CTX_new()/EVP_CIPHER_CTX_free(). openssl/openssl#962 (comment) Above APIs are available in our OpenSSL too, so we should move on to use these, otherwise upgrading OpenSSL will break libdmsg compilation at some point in the future. This also makes it more portable against systems using newer version of OpenSSL. Note that this diff is missing EVP_CIPHER_CTX_free() (was not sure where it should be freed at).
- Loading branch information...
Showing with 15 additions and 14 deletions.