Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Crypto buffers #4179

Merged
merged 9 commits into from
Oct 23, 2012
Merged
339 changes: 195 additions & 144 deletions doc/api/crypto.markdown

Large diffs are not rendered by default.

395 changes: 349 additions & 46 deletions lib/crypto.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,10 @@ exports.connect = function(/* [port, host], options, cb */) {
});

if (options.session) {
pair.ssl.setSession(options.session);
var session = options.session;
if (typeof session === 'string')
session = new Buffer(session, 'binary');
pair.ssl.setSession(session);
}

var cleartext = pipe(pair, socket);
Expand Down
Loading