Created
February 6, 2013 18:28
-
-
Save isaacs/4724663 to your computer and use it in GitHub Desktop.
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
diff --git a/lib/tls.js b/lib/tls.js | |
index 7853d9d..cfe216d 100644 | |
--- a/lib/tls.js | |
+++ b/lib/tls.js | |
@@ -234,7 +234,7 @@ var slabBuffer = null; | |
// Base class of both CleartextStream and EncryptedStream | |
-function CryptoStream(pair) { | |
+function CryptoStream(pair, options) { | |
stream.Duplex.call(this); | |
this.pair = pair; | |
@@ -637,8 +637,8 @@ Object.defineProperty(CryptoStream.prototype, 'readyState', { | |
}); | |
-function CleartextStream(pair) { | |
- CryptoStream.call(this, pair); | |
+function CleartextStream(pair, options) { | |
+ CryptoStream.call(this, pair, options); | |
} | |
util.inherits(CleartextStream, CryptoStream); | |
@@ -666,8 +666,8 @@ CleartextStream.prototype.__defineGetter__('remotePort', function() { | |
return this.socket && this.socket.remotePort; | |
}); | |
-function EncryptedStream(pair) { | |
- CryptoStream.call(this, pair); | |
+function EncryptedStream(pair, options) { | |
+ CryptoStream.call(this, pair, options); | |
} | |
util.inherits(EncryptedStream, CryptoStream); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment