mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-23 02:12:12 +00:00
parent
f49dbff61d
commit
1f53083fc4
@ -10,6 +10,9 @@
|
|||||||
[clientloop.c]
|
[clientloop.c]
|
||||||
don't overwrite SIG{INT,QUIT,TERM} handler if set to SIG_IGN;
|
don't overwrite SIG{INT,QUIT,TERM} handler if set to SIG_IGN;
|
||||||
e.g. if ssh is used for backup; report Joerg Schilling; ok millert@
|
e.g. if ssh is used for backup; report Joerg Schilling; ok millert@
|
||||||
|
- markus@cvs.openbsd.org 2002/11/21 22:22:50
|
||||||
|
[dh.c]
|
||||||
|
debug->debug2
|
||||||
|
|
||||||
20021205
|
20021205
|
||||||
- (djm) PERL-free fixpaths from stuge-openssh-unix-dev@cdy.org
|
- (djm) PERL-free fixpaths from stuge-openssh-unix-dev@cdy.org
|
||||||
@ -845,4 +848,4 @@
|
|||||||
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
save auth method before monitor_reset_key_state(); bugzilla bug #284;
|
||||||
ok provos@
|
ok provos@
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.2517 2002/12/23 02:01:55 mouring Exp $
|
$Id: ChangeLog,v 1.2518 2002/12/23 02:03:02 mouring Exp $
|
||||||
|
6
dh.c
6
dh.c
@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: dh.c,v 1.22 2002/06/27 08:49:44 markus Exp $");
|
RCSID("$OpenBSD: dh.c,v 1.23 2002/11/21 22:22:50 markus Exp $");
|
||||||
|
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
|
|
||||||
@ -182,7 +182,7 @@ dh_pub_is_valid(DH *dh, BIGNUM *dh_pub)
|
|||||||
for (i = 0; i <= n; i++)
|
for (i = 0; i <= n; i++)
|
||||||
if (BN_is_bit_set(dh_pub, i))
|
if (BN_is_bit_set(dh_pub, i))
|
||||||
bits_set++;
|
bits_set++;
|
||||||
debug("bits set: %d/%d", bits_set, BN_num_bits(dh->p));
|
debug2("bits set: %d/%d", bits_set, BN_num_bits(dh->p));
|
||||||
|
|
||||||
/* if g==2 and bits_set==1 then computing log_g(dh_pub) is trivial */
|
/* if g==2 and bits_set==1 then computing log_g(dh_pub) is trivial */
|
||||||
if (bits_set > 1 && (BN_cmp(dh_pub, dh->p) == -1))
|
if (bits_set > 1 && (BN_cmp(dh_pub, dh->p) == -1))
|
||||||
@ -214,7 +214,7 @@ dh_gen_key(DH *dh, int need)
|
|||||||
for (i = 0; i <= BN_num_bits(dh->priv_key); i++)
|
for (i = 0; i <= BN_num_bits(dh->priv_key); i++)
|
||||||
if (BN_is_bit_set(dh->priv_key, i))
|
if (BN_is_bit_set(dh->priv_key, i))
|
||||||
bits_set++;
|
bits_set++;
|
||||||
debug("dh_gen_key: priv key bits set: %d/%d",
|
debug2("dh_gen_key: priv key bits set: %d/%d",
|
||||||
bits_set, BN_num_bits(dh->priv_key));
|
bits_set, BN_num_bits(dh->priv_key));
|
||||||
if (tries++ > 10)
|
if (tries++ > 10)
|
||||||
fatal("dh_gen_key: too many bad keys: giving up");
|
fatal("dh_gen_key: too many bad keys: giving up");
|
||||||
|
Loading…
Reference in New Issue
Block a user