[CalendarServer-changes] [4663] CalDAVClientLibrary/trunk/src/protocol/http/authentication/digest.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 29 11:41:56 PDT 2009


Revision: 4663
          http://trac.macosforge.org/projects/calendarserver/changeset/4663
Author:   cdaboo at apple.com
Date:     2009-10-29 11:41:54 -0700 (Thu, 29 Oct 2009)
Log Message:
-----------
Use more recent hashlib module.

Modified Paths:
--------------
    CalDAVClientLibrary/trunk/src/protocol/http/authentication/digest.py

Modified: CalDAVClientLibrary/trunk/src/protocol/http/authentication/digest.py
===================================================================
--- CalDAVClientLibrary/trunk/src/protocol/http/authentication/digest.py	2009-10-29 17:56:19 UTC (rev 4662)
+++ CalDAVClientLibrary/trunk/src/protocol/http/authentication/digest.py	2009-10-29 18:41:54 UTC (rev 4663)
@@ -1,5 +1,5 @@
 ##
-# Copyright (c) 2006-2007 Apple Inc. All rights reserved.
+# Copyright (c) 2006-2009 Apple Inc. All rights reserved.
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -18,8 +18,7 @@
 from protocol.http.util import parsetoken
 from protocol.http.definitions import headers
 from StringIO import StringIO
-import sha
-import md5
+import hashlib
 
 class Digest(Authenticator):
 
@@ -99,9 +98,9 @@
             break
 
     algorithms = {
-        'md5': md5.new,
-        'md5-sess': md5.new,
-        'sha': sha.new,
+        'md5': hashlib.md5,
+        'md5-sess': hashlib.md5,
+        'sha': hashlib.sha1,
     }
     
     # DigestCalcHA1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20091029/eda0d1c8/attachment-0001.html>


More information about the calendarserver-changes mailing list