summaryrefslogtreecommitdiff
path: root/ssh-keygen.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-07-01 13:50:45 +0000
committerDamien Miller <djm@mindrot.org>2017-07-21 14:17:32 +1000
commit83fa3a044891887369ce8b487ce88d713a04df48 (patch)
treef5d227629414d0a30ef14141a5613ed31fd1985c /ssh-keygen.c
parent738c73dca2c99ee78c531b4cbeefc2008fe438f0 (diff)
upstream commit
remove post-SSHv1 removal dead code from rsa.c and merge the remaining bit that it still used into ssh-rsa.c; ok markus Upstream-ID: ac8a048d24dcd89594b0052ea5e3404b473bfa2f
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r--ssh-keygen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c
index b6b690051..d8f942f5a 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keygen.c,v 1.305 2017/06/28 01:09:22 djm Exp $ */ 1/* $OpenBSD: ssh-keygen.c,v 1.306 2017/07/01 13:50:45 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
@@ -41,7 +41,6 @@
41 41
42#include "xmalloc.h" 42#include "xmalloc.h"
43#include "sshkey.h" 43#include "sshkey.h"
44#include "rsa.h"
45#include "authfile.h" 44#include "authfile.h"
46#include "uuencode.h" 45#include "uuencode.h"
47#include "sshbuf.h" 46#include "sshbuf.h"
@@ -528,7 +527,7 @@ do_convert_private_ssh2_from_blob(u_char *blob, u_int blen)
528 buffer_get_bignum_bits(b, key->rsa->iqmp); 527 buffer_get_bignum_bits(b, key->rsa->iqmp);
529 buffer_get_bignum_bits(b, key->rsa->q); 528 buffer_get_bignum_bits(b, key->rsa->q);
530 buffer_get_bignum_bits(b, key->rsa->p); 529 buffer_get_bignum_bits(b, key->rsa->p);
531 if ((r = rsa_generate_additional_parameters(key->rsa)) != 0) 530 if ((r = ssh_rsa_generate_additional_parameters(key)) != 0)
532 fatal("generate RSA parameters failed: %s", ssh_err(r)); 531 fatal("generate RSA parameters failed: %s", ssh_err(r));
533 break; 532 break;
534 } 533 }