summaryrefslogtreecommitdiffstats
path: root/third_party/tlslite/patches/save_client_hello.patch
blob: aaa5d24bfc1c440d425ba4eb56fc4904d7fd1a0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/third_party/tlslite/tlslite/tlsconnection.py b/third_party/tlslite/tlslite/tlsconnection.py
index 996b7e9..06aa0c9 100644
--- a/third_party/tlslite/tlslite/tlsconnection.py
+++ b/third_party/tlslite/tlslite/tlsconnection.py
@@ -1261,6 +1261,9 @@ class TLSConnection(TLSRecordLayer):
                 return # Handshake was resumed, we're done 
             else: break
         (clientHello, cipherSuite) = result
+
+        # Save the ClientHello for external code to query.
+        self.clientHello = clientHello
         
         #If not a resumption...