diff options
author | Anton Salikhmetov <anton.salikhmetov@gmail.com> | 2018-03-02 21:46:34 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-03-11 18:29:18 +0100 |
commit | 98a14e026bab0bda4013f75d1d0968a12fe5117f (patch) | |
tree | 2c8b58aba092f3a6609dc352642bf219ac9ae138 /lib | |
parent | d3f174faab55662226ced53bef6bb2040352a825 (diff) | |
download | android-node-v8-98a14e026bab0bda4013f75d1d0968a12fe5117f.tar.gz android-node-v8-98a14e026bab0bda4013f75d1d0968a12fe5117f.tar.bz2 android-node-v8-98a14e026bab0bda4013f75d1d0968a12fe5117f.zip |
tls: expose Finished messages in TLSSocket
Exposes SSL_get_finished and SSL_get_peer_finished routines in OpenSSL
as tlsSocket.getFinished and tlsSocket.getPeerFinished, respectively.
PR-URL: https://github.com/nodejs/node/pull/19102
Fixes: https://github.com/nodejs/node/issues/19055
Refs: https://github.com/ripple/rippled/issues/2413
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/_tls_wrap.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 79646ba3d2..8ac497902e 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -692,6 +692,16 @@ TLSSocket.prototype.getPeerCertificate = function(detailed) { return null; }; +TLSSocket.prototype.getFinished = function() { + if (this._handle) + return this._handle.getFinished(); +}; + +TLSSocket.prototype.getPeerFinished = function() { + if (this._handle) + return this._handle.getPeerFinished(); +}; + TLSSocket.prototype.getSession = function() { if (this._handle) { return this._handle.getSession(); |