Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: third_party/tlslite/tlslite/messages.py

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/tlslite/tlslite/errors.py ('k') | webkit/glue/password_form.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tlslite/tlslite/messages.py
diff --git a/third_party/tlslite/tlslite/messages.py b/third_party/tlslite/tlslite/messages.py
index dc6ed324113d9daa54185c85d568f436c061a529..1058ad0eb5f99385934a957a9748ab12eaa512c6 100644
--- a/third_party/tlslite/tlslite/messages.py
+++ b/third_party/tlslite/tlslite/messages.py
@@ -170,7 +170,7 @@ class ClientHello(HandshakeMsg):
while soFar != totalExtLength:
extType = p.get(2)
extLength = p.get(2)
- if extType == 6:
+ if extType == ClientHelloExtension.srp:
self.srp_username = bytesToString(p.getVarBytes(1))
elif extType == 7:
self.certificate_types = p.getVarList(1, 1)
@@ -204,7 +204,7 @@ class ClientHello(HandshakeMsg):
w.add(len(self.certificate_types)+1, 2)
w.addVarSeq(self.certificate_types, 1, 1)
if self.srp_username:
- w.add(6, 2)
+ w.add(ClientHelloExtension.srp, 2)
w.add(len(self.srp_username)+1, 2)
w.addVarSeq(stringToBytes(self.srp_username), 1, 1)
« no previous file with comments | « third_party/tlslite/tlslite/errors.py ('k') | webkit/glue/password_form.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698