[openssh-commits] [openssh] 01/01: Put EC key export inside OPENSSL_HAS_ECC.

git+noreply at mindrot.org git+noreply at mindrot.org
Sat Jan 25 13:06:38 AEDT 2020


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit e16dfa94f86358033531c4a97dcb51508ef84d49
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Sat Jan 25 13:05:42 2020 +1100

    Put EC key export inside OPENSSL_HAS_ECC.
    
    Fixes link error when building against an OpenSSL that does not have
    ECC.
---
 ssh-keygen.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ssh-keygen.c b/ssh-keygen.c
index 14d2357a..d29f97bb 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -406,10 +406,12 @@ do_convert_to_pem(struct sshkey *k)
 		if (!PEM_write_DSA_PUBKEY(stdout, k->dsa))
 			fatal("PEM_write_DSA_PUBKEY failed");
 		break;
+#ifdef OPENSSL_HAS_ECC
 	case KEY_ECDSA:
 		if (!PEM_write_EC_PUBKEY(stdout, k->ecdsa))
 			fatal("PEM_write_EC_PUBKEY failed");
 		break;
+#endif
 	default:
 		fatal("%s: unsupported key type %s", __func__, sshkey_type(k));
 	}

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list