commit | bd5d7d239525d595ecea92765334af33a45d9d63 | [log] [tgz] |
---|---|---|
author | Darren Tucker <dtucker@zip.com.au> | Sun Feb 12 15:45:15 2017 +1100 |
committer | Darren Tucker <dtucker@zip.com.au> | Sun Feb 12 15:45:15 2017 +1100 |
tree | c6f5ebb0455ff26502b78d4f90f8d804c67d3ebe | |
parent | 155d540d00ff55f063421ec182ec8ff2b7ab6cbe [diff] |
ifdef out EVP_R_PRIVATE_KEY_DECODE_ERROR EVP_R_PRIVATE_KEY_DECODE_ERROR was added in OpenSSL 1.0.0 so ifdef out for the benefit of OpenSSL versions prior to that.
diff --git a/sshkey.c b/sshkey.c index 0567592..31710e5 100644 --- a/sshkey.c +++ b/sshkey.c
@@ -3812,7 +3812,9 @@ goto out; case EVP_R_BN_DECODE_ERROR: case EVP_R_DECODE_ERROR: +#ifdef EVP_R_PRIVATE_KEY_DECODE_ERROR case EVP_R_PRIVATE_KEY_DECODE_ERROR: +#endif r = SSH_ERR_INVALID_FORMAT; goto out; default: