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 compile
details: https://anonhg.NetBSD.org/src/rev/0873d4276771
branches: trunk
changeset: 761681:0873d4276771
user: spz <spz%NetBSD.org@localhost>
date: Sat Feb 05 06:23:58 2011 +0000
description:
fix compile
diffstat:
crypto/external/bsd/openssh/dist/key.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 11b291ade125 -r 0873d4276771 crypto/external/bsd/openssh/dist/key.c
--- a/crypto/external/bsd/openssh/dist/key.c Sat Feb 05 03:09:46 2011 +0000
+++ b/crypto/external/bsd/openssh/dist/key.c Sat Feb 05 06:23:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.5 2011/02/04 22:11:09 christos Exp $ */
+/* $NetBSD: key.c,v 1.6 2011/02/05 06:23:58 spz Exp $ */
/* $OpenBSD: key.c,v 1.90 2010/07/13 23:13:16 djm Exp $ */
/*
* read_bignum():
@@ -36,7 +36,7 @@
*/
#include "includes.h"
-__RCSID("$NetBSD: key.c,v 1.5 2011/02/04 22:11:09 christos Exp $");
+__RCSID("$NetBSD: key.c,v 1.6 2011/02/05 06:23:58 spz Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -1514,7 +1514,10 @@
buffer_put_cstring(&k->cert->certblob, key_ssh_name(k));
/* -v01 certs put nonce first */
- arc4random_buf(&nonce, sizeof(nonce));
+ /*arc4random_buf(&nonce, sizeof(nonce));*/
+ for (i = 0; i < sizeof(nonce); i += 4)
+ *(uint32_t *)&(nonce[i]) = arc4random();
+
if (k->type == KEY_DSA_CERT || k->type == KEY_RSA_CERT) {
buffer_put_string(&k->cert->certblob, nonce, sizeof(nonce));
}
Home |
Main Index |
Thread Index |
Old Index