diff options
author | Damien Miller <djm@mindrot.org> | 2023-03-24 15:23:05 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-03-24 15:26:26 +1100 |
commit | 3c527d55f906e6970d17c4cab6db90ae9e013235 (patch) | |
tree | 1003fce87483f2d2bc927f014a38f8d6d3941a3a /sshkey.c | |
parent | b7e27cfd7f163fc16b4c5d041cc28ee488a5eeec (diff) | |
download | openssh-git-3c527d55f906e6970d17c4cab6db90ae9e013235.tar.gz |
Allow building with BoringSSL
Diffstat (limited to 'sshkey.c')
-rw-r--r-- | sshkey.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3342,16 +3342,22 @@ translate_libcrypto_error(unsigned long pem_err) case ERR_LIB_PEM: switch (pem_reason) { case PEM_R_BAD_PASSWORD_READ: +#ifdef PEM_R_PROBLEMS_GETTING_PASSWORD case PEM_R_PROBLEMS_GETTING_PASSWORD: +#endif +#ifdef PEM_R_BAD_DECRYPT case PEM_R_BAD_DECRYPT: +#endif return SSH_ERR_KEY_WRONG_PASSPHRASE; default: return SSH_ERR_INVALID_FORMAT; } case ERR_LIB_EVP: switch (pem_reason) { +#ifdef EVP_R_BAD_DECRYPT case EVP_R_BAD_DECRYPT: return SSH_ERR_KEY_WRONG_PASSPHRASE; +#endif #ifdef EVP_R_BN_DECODE_ERROR case EVP_R_BN_DECODE_ERROR: #endif |