summaryrefslogtreecommitdiff
path: root/lib/tls.js
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2011-07-29 10:03:05 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-07-29 11:58:02 -0700
commitde0b8d601c31314cb885e99609597084ab8a4d99 (patch)
tree0826b9754dca5d0f3f681ffe2a5efc365920c070 /lib/tls.js
parent703a1ffe52b66972f38db19fb68e0f70c3dd2631 (diff)
downloadnode-new-de0b8d601c31314cb885e99609597084ab8a4d99.tar.gz
jslint cleanup: path.js, readline.js, repl.js, tls.js, tty_win32.js, url.js
Diffstat (limited to 'lib/tls.js')
-rw-r--r--lib/tls.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/tls.js b/lib/tls.js
index e83ae4ef93..938d9033e1 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -69,7 +69,7 @@ function convertNPNProtocols(NPNProtocols, out) {
if (Buffer.isBuffer(NPNProtocols)) {
out.NPNProtocols = NPNProtocols;
}
-};
+}
// Base class of both CleartextStream and EncryptedStream
function CryptoStream(pair) {
@@ -379,7 +379,7 @@ CryptoStream.prototype._pull = function() {
this.pair.encrypted._destroyAfterPush = true;
}
this.pair.cycle();
- this._done()
+ this._done();
return;
}
@@ -514,9 +514,8 @@ function SecurePair(credentials, isServer, requestCert, rejectUnauthorized,
this._requestCert = requestCert ? true : false;
this.ssl = new Connection(this.credentials.context,
- this._isServer ? true : false,
- this._requestCert,
- this._rejectUnauthorized);
+ this._isServer ? true : false, this._requestCert,
+ this._rejectUnauthorized);
if (NPN_ENABLED && NPNProtocols) {
this.ssl.setNPNProtocols(NPNProtocols);
@@ -593,28 +592,28 @@ SecurePair.prototype.cycle = function(depth) {
if (!this.cycleEncryptedPullLock) {
this.cycleEncryptedPullLock = true;
- debug("encrypted._pull");
+ debug('encrypted._pull');
this.encrypted._pull();
this.cycleEncryptedPullLock = false;
}
if (!this.cycleCleartextPullLock) {
this.cycleCleartextPullLock = true;
- debug("cleartext._pull");
+ debug('cleartext._pull');
this.cleartext._pull();
this.cycleCleartextPullLock = false;
}
if (!this.cycleCleartextPushLock) {
this.cycleCleartextPushLock = true;
- debug("cleartext._push");
+ debug('cleartext._push');
this.cleartext._push();
this.cycleCleartextPushLock = false;
}
if (!this.cycleEncryptedPushLock) {
this.cycleEncryptedPushLock = true;
- debug("encrypted._push");
+ debug('encrypted._push');
this.encrypted._push();
this.cycleEncryptedPushLock = false;
}