Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh/dist Fix copy & pasto (dsa code ...



details:   https://anonhg.NetBSD.org/src/rev/b08ab709e2a5
branches:  trunk
changeset: 829808:b08ab709e2a5
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Feb 13 09:51:33 2018 +0000

description:
Fix copy & pasto (dsa code vs. rsa code) in previous, fixes PR lib/53012
and recentish sshfs test failures.

diffstat:

 crypto/external/bsd/openssh/dist/sshkey.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4d31d8073697 -r b08ab709e2a5 crypto/external/bsd/openssh/dist/sshkey.c
--- a/crypto/external/bsd/openssh/dist/sshkey.c Tue Feb 13 09:50:35 2018 +0000
+++ b/crypto/external/bsd/openssh/dist/sshkey.c Tue Feb 13 09:51:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sshkey.c,v 1.12 2018/02/05 00:13:50 christos Exp $     */
+/*     $NetBSD: sshkey.c,v 1.13 2018/02/13 09:51:33 martin Exp $       */
 /* $OpenBSD: sshkey.c,v 1.56 2017/08/12 06:42:52 djm Exp $ */
 /*
  * Copyright (c) 2000, 2001 Markus Friedl.  All rights reserved.
@@ -26,7 +26,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include "includes.h"
-__RCSID("$NetBSD: sshkey.c,v 1.12 2018/02/05 00:13:50 christos Exp $");
+__RCSID("$NetBSD: sshkey.c,v 1.13 2018/02/13 09:51:33 martin Exp $");
 
 #include <sys/types.h>
 #include <netinet/in.h>
@@ -258,7 +258,7 @@
 #if OPENSSL_VERSION_NUMBER >= 0x10100000UL
                return RSA_bits(k->rsa);
 #else
-               return BN_num_bits(k->rsa->p);
+               return BN_num_bits(k->rsa->n);
 #endif
        case KEY_DSA:
        case KEY_DSA_CERT:



Home | Main Index | Thread Index | Old Index