mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
makechallenge functionality was moved into daemon.py
This commit is contained in:
@@ -113,14 +113,6 @@ class session(object):
|
||||
for i in xrange(n):
|
||||
yield r.hgetall("session:%d" % i)
|
||||
|
||||
def make_challenge(self):
|
||||
challid = random()
|
||||
value = random()
|
||||
sessions.hset(self.id + ":req", "id", challid)
|
||||
sessions.hset(self.id + ":req", "challtime", int(time.time()))
|
||||
sessions.hset(self.id + ":req", "challenge", value)
|
||||
return (challid, value)
|
||||
|
||||
def handlesession(self, m, r):
|
||||
if r.failure.IsInitialized(): return
|
||||
if m.session == "":
|
||||
|
||||
Reference in New Issue
Block a user