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

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: 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
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..eb850e9294bce66b9c6281b4c910718f82a5ea0d 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.alertAfterHandshake:
+ for result in self._sendError(AlertDescription.internal_error,
+ "Spurious alert"):
+ yield result
def _handshakeServerAsyncHelper(self, verifierDB,
« net/ssl/openssl_ssl_util.h ('K') | « third_party/tlslite/tlslite/handshakesettings.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698