diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-19 13:04:34 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-21 01:03:05 +0400 |
commit | 7c3643b76788b15a5712a316831a35f1ab9b7f91 (patch) | |
tree | f0e2e81ab89ca292b9f9c55634f3705a8704b3eb /lib | |
parent | 2ca69051608f3cdbfa28e65de9ddd326a13cd000 (diff) | |
download | nodejs-7c3643b76788b15a5712a316831a35f1ab9b7f91.tar.gz nodejs-7c3643b76788b15a5712a316831a35f1ab9b7f91.tar.bz2 nodejs-7c3643b76788b15a5712a316831a35f1ab9b7f91.zip |
tls: reintroduce socket.encrypted
Just a property that is always `true` for TLS sockets.
fix #6735
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_tls_wrap.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index ac478956a..861508b9d 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -172,6 +172,10 @@ function TLSSocket(socket, options) { this.authorized = false; this.authorizationError = null; + // Just a documented property to make secure sockets + // distinguishable from regular ones. + this.encrypted = true; + this.on('error', this._tlsError); if (!this._handle) |