Skip to content

Commit

Permalink
upstream: key conversion should fail for !openssl builds, not fall
Browse files Browse the repository at this point in the history
through to the key generation code

OpenBSD-Commit-ID: b957436adc43c4941e61d61958a193a708bc83c9
  • Loading branch information
djmdjm committed Sep 8, 2019
1 parent 823f6c3 commit c8bdd2d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ssh-keygen.c
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
* Copyright (c) 1994 Tatu Ylonen <[email protected]>, Espoo, Finland
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit c8bdd2d

Please sign in to comment.