[Pkg-privacy-commits] [obfsproxy] 267/353: Update correct attribute to fix key rotation.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:02:08 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository obfsproxy.

commit 576abee1fa23b6d4a6c6e7e50daccac22474a81e
Author: Philipp Winter <phw at torproject.org>
Date:   Sat Mar 1 13:19:08 2014 +0100

    Update correct attribute to fix key rotation.
    
    The attribute "creationTime" does not exist.  Instead, update the correct
    attribute "keyCreation".  This bug broke the server's key rotation.  The patch,
    written by Yawning Angel, fixes <https://bugs.torproject.org/11100>.
---
 obfsproxy/transports/scramblesuit/ticket.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/obfsproxy/transports/scramblesuit/ticket.py b/obfsproxy/transports/scramblesuit/ticket.py
index 8599936..0b90c8e 100644
--- a/obfsproxy/transports/scramblesuit/ticket.py
+++ b/obfsproxy/transports/scramblesuit/ticket.py
@@ -176,7 +176,7 @@ def checkKeys( srvState ):
         # Create new key material...
         srvState.aesKey = mycrypto.strongRandom(const.TICKET_AES_KEY_LENGTH)
         srvState.hmacKey = mycrypto.strongRandom(const.TICKET_HMAC_KEY_LENGTH)
-        srvState.creationTime = int(time.time())
+        srvState.keyCreation = int(time.time())
 
         # ...and save it to disk.
         srvState.writeState()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/obfsproxy.git



More information about the Pkg-privacy-commits mailing list