openssl-1.1.0 made ctx opaque and does not allow it on stack anymore. (cherry picked from commit 20e590a4)