Index: third_party/tlslite/patches/save_randoms.patch |
diff --git a/third_party/tlslite/patches/save_randoms.patch b/third_party/tlslite/patches/save_randoms.patch |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ceb469719af71469e4256a92e596c3f7c27cda7a |
--- /dev/null |
+++ b/third_party/tlslite/patches/save_randoms.patch |
@@ -0,0 +1,13 @@ |
+diff --git a/third_party/tlslite/tlslite/tlsconnection.py b/third_party/tlslite/tlslite/tlsconnection.py |
+index e42b362..41aab85 100644 |
+--- a/third_party/tlslite/tlslite/tlsconnection.py |
++++ b/third_party/tlslite/tlslite/tlsconnection.py |
+@@ -1570,6 +1570,8 @@ class TLSConnection(TLSRecordLayer): |
+ #Set the session |
+ self.session = session |
+ |
++ self.clientRandom = clientHello.random |
++ self.serverRandom = serverHello.random |
+ yield None # Handshake done! |
+ |
+ #Calculate the first cipher suite intersection. |