[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-1]

no changes
why aren't my log messages kept?
This commit is contained in:
Robey Pointer 2003-11-04 08:50:22 +00:00
parent 51607386c7
commit 3b9901a602
1 changed files with 2 additions and 1 deletions

View File

@ -94,10 +94,11 @@ class KexGex(object):
self.max_bits = max self.max_bits = max
# generate prime # generate prime
while 1: while 1:
# does not work FIXME
self.transport.log(DEBUG, 'stir...') self.transport.log(DEBUG, 'stir...')
self.transport.randpool.stir() self.transport.randpool.stir()
self.transport.log(DEBUG, 'get-prime %d...' % preferred) self.transport.log(DEBUG, 'get-prime %d...' % preferred)
self.p = number.getRandomNumber(preferred, self.transport.randpool.get_bytes) self.p = number.getPrime(preferred, self.transport.randpool.get_bytes)
self.transport.log(DEBUG, 'got ' + repr(self.p)) self.transport.log(DEBUG, 'got ' + repr(self.p))
if number.isPrime((self.p - 1) // 2): if number.isPrime((self.p - 1) // 2):
break break