- Timestamp:
- Oct 7, 2007, 5:17:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vnc/vnc_server/vncexternalauth.py
r115 r118 66 66 return #FIXME 67 67 token = base64.urlsafe_b64decode(token) 68 token = cPickle.load (token)68 token = cPickle.loads(token) 69 69 m = hmac.new(TOKEN_KEY, digestmod=sha) 70 70 m.update(token['data']) 71 71 if (m.digest() == token['digest']): 72 data = cPickle.load (token['data'])72 data = cPickle.loads(token['data']) 73 73 expires = data["expires"] 74 74 if (time.time() < expires):
Note: See TracChangeset
for help on using the changeset viewer.