Skip to content

Commit

Permalink
make 'readyState' available to CryptoStream
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead authored and ry committed Jan 19, 2011
1 parent 2f6cb66 commit 66b418d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tls.js
Expand Up @@ -167,6 +167,9 @@ CryptoStream.prototype.destroy = function(err) {
this.pair._destroy();
};

CryptoStream.prototype.fd = -1;
CryptoStream.prototype.__defineGetter__('readyState',
net.Socket.prototype.__lookupGetter__('readyState'));

// Move decrypted, clear data out into the application.
// From the user's perspective this occurs as a 'data' event
Expand Down

0 comments on commit 66b418d

Please sign in to comment.