]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: key conversion should fail for !openssl builds, not fall
authordjm@openbsd.org <djm@openbsd.org>
Fri, 6 Sep 2019 07:53:40 +0000 (07:53 +0000)
committerDamien Miller <djm@mindrot.org>
Sun, 8 Sep 2019 04:49:04 +0000 (14:49 +1000)
through to the key generation code

OpenBSD-Commit-ID: b957436adc43c4941e61d61958a193a708bc83c9

ssh-keygen.c

index 1a0d816eaf0a33f58a0bda0944689a4554aa7555..570f317956ad2f19a26dd06969d2feff28ee2e3c 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.348 2019/09/06 05:23:55 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.349 2019/09/06 07:53:40 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -3108,7 +3108,10 @@ main(int argc, char **argv)
                do_convert_to(pw);
        if (convert_from)
                do_convert_from(pw);
-#endif
+#else /* WITH_OPENSSL */
+       if (convert_to || convert_from)
+               fatal("key conversion disabled at compile time");
+#endif /* WITH_OPENSSL */
        if (print_public)
                do_print_public(pw);
        if (rr_hostname != NULL) {