diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-09-06 07:53:40 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-09-08 14:49:04 +1000 |
commit | c8bdd2db77ac2369d5cdee237656f266c8f41552 (patch) | |
tree | 9483ad1cdb4e0577813fcda98c04994eddc427ae | |
parent | 823f6c37eb2d8191d45539f7b6fa877a4cb4ed3d (diff) |
upstream: key conversion should fail for !openssl builds, not fall
through to the key generation code
OpenBSD-Commit-ID: b957436adc43c4941e61d61958a193a708bc83c9
-rw-r--r-- | ssh-keygen.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 1a0d816ea..570f31795 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.348 2019/09/06 05:23:55 djm Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.349 2019/09/06 07:53:40 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -3108,7 +3108,10 @@ main(int argc, char **argv) | |||
3108 | do_convert_to(pw); | 3108 | do_convert_to(pw); |
3109 | if (convert_from) | 3109 | if (convert_from) |
3110 | do_convert_from(pw); | 3110 | do_convert_from(pw); |
3111 | #endif | 3111 | #else /* WITH_OPENSSL */ |
3112 | if (convert_to || convert_from) | ||
3113 | fatal("key conversion disabled at compile time"); | ||
3114 | #endif /* WITH_OPENSSL */ | ||
3112 | if (print_public) | 3115 | if (print_public) |
3113 | do_print_public(pw); | 3116 | do_print_public(pw); |
3114 | if (rr_hostname != NULL) { | 3117 | if (rr_hostname != NULL) { |