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/cc1b51e2794b
branches: trunk
changeset: 359507:cc1b51e2794b
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 54f2a0974456 -r cc1b51e2794b 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