Changeset 118 for trunk/vnc/vnc_server


Ignore:
Timestamp:
Oct 7, 2007, 5:17:25 PM (17 years ago)
Author:
quentin
Message:

Generate real authentication tokens

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vnc/vnc_server/vncexternalauth.py

    r115 r118  
    6666            return #FIXME
    6767        token = base64.urlsafe_b64decode(token)
    68         token = cPickle.load(token)
     68        token = cPickle.loads(token)
    6969        m = hmac.new(TOKEN_KEY, digestmod=sha)
    7070        m.update(token['data'])
    7171        if (m.digest() == token['digest']):
    72             data = cPickle.load(token['data'])
     72            data = cPickle.loads(token['data'])
    7373            expires = data["expires"]
    7474            if (time.time() < expires):
Note: See TracChangeset for help on using the changeset viewer.