Created
August 10, 2011 15:10
-
-
Save koichik/1137067 to your computer and use it in GitHub Desktop.
tls image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cleartext cleartext | |
write() ↓ ↑ 'data' | |
+------------+ +---------------------------------------+ | |
| | cleartext| _pending ↑ | | |
| |-------------| _pull() ↓ CleartextStream ↑ _push() | | |
| |pair |_puller() ↓ ↑ _pusher()| | |
| | +---------------------------------------+ | |
| | clearIn ↓ ↑ clearOut | |
| | ssl+---------------------------------------+ | |
| SecurePair |-------------| OpenSSL | | |
| | +---------------------------------------+ | |
| | encOut ↓ ↑ encIn | |
| | +---------------------------------------+ | |
| | encrypt|_pusher() ↓ ↑ _puller()| | |
| |-------------| _push() ↓ EncryptedStream ↑ _pull() | | |
| |pair | ↓ _pending | | |
+------------+ +---------------------------------------+ | |
'data' ↓ ↑ 'data' | |
+----------------+ +----------------+ | |
| pipe() | | pipe() | | |
+----------------+ +----------------+ | |
write() ↓ ↑ write() | |
+---------------------------------------+ | |
| net.Socket | | |
+---------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment