summaryrefslogtreecommitdiff
path: root/sshkey.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2017-02-12 15:45:15 +1100
committerDarren Tucker <dtucker@zip.com.au>2017-02-12 15:45:15 +1100
commitbd5d7d239525d595ecea92765334af33a45d9d63 (patch)
treec6f5ebb0455ff26502b78d4f90f8d804c67d3ebe /sshkey.c
parent155d540d00ff55f063421ec182ec8ff2b7ab6cbe (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.
Diffstat (limited to 'sshkey.c')
-rw-r--r--sshkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshkey.c b/sshkey.c
index 05675920f..31710e59e 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -3812,7 +3812,9 @@ sshkey_parse_private_pem_fileblob(struct sshbuf *blob, int type,
3812 goto out; 3812 goto out;
3813 case EVP_R_BN_DECODE_ERROR: 3813 case EVP_R_BN_DECODE_ERROR:
3814 case EVP_R_DECODE_ERROR: 3814 case EVP_R_DECODE_ERROR:
3815#ifdef EVP_R_PRIVATE_KEY_DECODE_ERROR
3815 case EVP_R_PRIVATE_KEY_DECODE_ERROR: 3816 case EVP_R_PRIVATE_KEY_DECODE_ERROR:
3817#endif
3816 r = SSH_ERR_INVALID_FORMAT; 3818 r = SSH_ERR_INVALID_FORMAT;
3817 goto out; 3819 goto out;
3818 default: 3820 default: