Skip to content

Commit b9a0eb0

Browse files
indutnybnoordhuis
authored andcommitted
tls, crypto: deduplicate code
Commit 03e008d introduced src/tls_wrap.cc and src/tls_wrap.h but said files copied on the order of 1 kLoC from src/node_crypto.cc and src/node_crypto.h. This commit undoes some of the duplication. Fixes #6024.
1 parent 3e25ed9 commit b9a0eb0

File tree

5 files changed

+1095
-1668
lines changed

5 files changed

+1095
-1668
lines changed

lib/_tls_legacy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ function onclienthello(hello) {
604604
if (err) return self.socket.destroy(err);
605605

606606
self.ssl.loadSession(session);
607+
self.ssl.endParser();
607608

608609
// Cycle data
609610
self._resumingSession = false;

0 commit comments

Comments
 (0)