I just contributed EVP_ENCODE_CTX_copy to the OpenSSL.

It’s been merged in this commit.