Patch for OpenSSH-7.3p1 to compile with OpenSSL-1.1.0b
This is a patch for
OpenSSH-7.3p1
to build with OpenSSL-1.1.0b .
By default OpenSSH-7.3p1 only supports up to OpenSSL-1.0.x versions.
This patch will build and pass all "make tests" regressions.
This patch does not support OpenSSL 1.0.x, so don't if.
This patch doesn't introduce new functions to emulate
1.1.x API on 1.0.x .
Comments:
- OpenSSL 1.0.x support is dropped for simplicity; else it needs
tons of
#ifdef
s which was minimal in origial OpenSSH code.
- I do agree with Kurt's comment that
checking for allocated non NULL BIGNUMs
in regression tests is pointless.
My patch does allocate dummy BIGNUMs, but this shouldn't be necessary under
OpenSSL 1.1.x API.
- LibreSSL used by OpenBSD has different API, so this patch is
unlikely to be merged upstream.