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

Unified Diff: third_party/tlslite/patches/send_certificate_types.patch

Issue 210323002: Update tlslite to 0.4.6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Executable bit and --similarity=80 Created 6 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
Index: third_party/tlslite/patches/send_certificate_types.patch
diff --git a/third_party/tlslite/patches/send_certificate_types.patch b/third_party/tlslite/patches/send_certificate_types.patch
deleted file mode 100644
index 14b293587f830a6849c8c07776aef1270e87eea2..0000000000000000000000000000000000000000
--- a/third_party/tlslite/patches/send_certificate_types.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-diff --git a/tlslite/constants.py b/tlslite/constants.py
-index 8f2d559..04302c0 100644
---- a/tlslite/constants.py
-+++ b/tlslite/constants.py
-@@ -5,6 +5,12 @@ class CertificateType:
- openpgp = 1
- cryptoID = 2
-
-+class ClientCertificateType:
-+ rsa_sign = 1
-+ dss_sign = 2
-+ rsa_fixed_dh = 3
-+ dss_fixed_dh = 4
-+
- class HandshakeType:
- hello_request = 0
- client_hello = 1
-diff --git a/tlslite/messages.py b/tlslite/messages.py
-index 06c46b9..8bcec2c 100644
---- a/tlslite/messages.py
-+++ b/tlslite/messages.py
-@@ -346,7 +346,9 @@ class Certificate(HandshakeMsg):
- class CertificateRequest(HandshakeMsg):
- def __init__(self):
- self.contentType = ContentType.handshake
-- self.certificate_types = []
-+ #Apple's implementation rejects empty certificate_types, so
-+ #default to rsa_sign.
-+ self.certificate_types = [ClientCertificateType.rsa_sign]
- #treat as opaque bytes for now
- self.certificate_authorities = createByteArraySequence([])
-

Powered by Google App Engine
This is Rietveld 408576698