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

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

Issue 994373004: Properly handle alerts from the peer in SSL_read. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix CrOS tests Created 5 years, 9 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/handshakesettings.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tlslite/tlslite/tlsconnection.py
diff --git a/third_party/tlslite/tlslite/tlsconnection.py b/third_party/tlslite/tlslite/tlsconnection.py
index 0e13a78020a5df0c372112baa226af89bf3037b9..0a85d3cc98481d3e3f8afd1f8f4186ac5ce25bed 100644
--- a/third_party/tlslite/tlslite/tlsconnection.py
+++ b/third_party/tlslite/tlslite/tlsconnection.py
@@ -1221,6 +1221,10 @@ class TLSConnection(TLSRecordLayer):
ocspResponse=ocspResponse)
for result in self._handshakeWrapperAsync(handshaker, checker):
yield result
+ if settings and settings.alertAfterHandshake:
+ for result in self._sendError(AlertDescription.internal_error,
+ "Spurious alert"):
+ yield result
def _handshakeServerAsyncHelper(self, verifierDB,
« no previous file with comments | « third_party/tlslite/tlslite/handshakesettings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698