Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created February 6, 2013 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/4724663 to your computer and use it in GitHub Desktop.
Save isaacs/4724663 to your computer and use it in GitHub Desktop.
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