          if digest != opaqueParts[0]:
              raise error.LoginFailed('Invalid response, invalid opaque value')
  
-@@ -293,11 +337,12 @@
+@@ -293,11 +335,12 @@
          c = self.generateNonce()
          o = self.generateOpaque(c, peer.host)
  

 }
 
 # DigestCalcHA1
@@ -153,9 +162,44 @@
             calcHA1(algo, self.username, self.realm, password, nonce, cnonce),
             algo, nonce, nc, cnonce, qop, self.method, uri, None
         )

 
     def decode(self, response, request):
         """
@@ -315,18 +358,18 @@
         @raise: L{error.LoginFailed} if the response does not contain a
             username, a nonce, an opaque, or if the opaque is invalid.
         """
