Update Token Binding TLS Extension number to IANA-allocated number

BUG=467312

Review URL: https://codereview.chromium.org/1675693002

Cr-Original-Commit-Position: refs/heads/master@{#373877}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b5ad8a80d5e4bfebb071382166f096df3fdacd1e
diff --git a/README.chromium b/README.chromium
index 7c6b6dd..10867b8 100644
--- a/README.chromium
+++ b/README.chromium
@@ -49,3 +49,4 @@
   exported keying material (RFC 5705) for use in e.g. Token Binding.
 - patches/token_binding_resumption.patch: Fix token binding negotiation
   extension to work on session resumption.
+- patches/extension_number_update.patch: Update TLS extension numbers.
diff --git a/patches/extension_number_update.patch b/patches/extension_number_update.patch
new file mode 100644
index 0000000..024d7c9
--- /dev/null
+++ b/patches/extension_number_update.patch
@@ -0,0 +1,18 @@
+diff --git a/third_party/tlslite/tlslite/constants.py b/third_party/tlslite/tlslite/constants.py
+index 84bb703..715def9 100644
+--- a/third_party/tlslite/tlslite/constants.py
++++ b/third_party/tlslite/tlslite/constants.py
+@@ -55,11 +55,11 @@ class ExtensionType:    # RFC 6066 / 4366
+     srp = 12            # RFC 5054  
+     cert_type = 9       # RFC 6091
+     signed_cert_timestamps = 18  # RFC 6962
+-    extended_master_secret = 23  # draft-ietf-tls-session-hash-06
++    extended_master_secret = 23  # RFC 7627
++    token_binding = 24           # draft-ietf-tokbind-negotiation
+     tack = 0xF300
+     supports_npn = 13172
+     channel_id = 30032
+-    token_binding = 30033
+ 
+ class HashAlgorithm:
+     none = 0
diff --git a/tlslite/constants.py b/tlslite/constants.py
index 84bb703..715def9 100644
--- a/tlslite/constants.py
+++ b/tlslite/constants.py
@@ -55,11 +55,11 @@
     srp = 12            # RFC 5054  
     cert_type = 9       # RFC 6091
     signed_cert_timestamps = 18  # RFC 6962
-    extended_master_secret = 23  # draft-ietf-tls-session-hash-06
+    extended_master_secret = 23  # RFC 7627
+    token_binding = 24           # draft-ietf-tokbind-negotiation
     tack = 0xF300
     supports_npn = 13172
     channel_id = 30032
-    token_binding = 30033
 
 class HashAlgorithm:
     none = 0