UNPKG

25.5 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7var _nativeDuplexpair = _interopRequireDefault(require("native-duplexpair"));
8var tls = _interopRequireWildcard(require("tls"));
9var _events = require("events");
10var _message = _interopRequireDefault(require("./message"));
11var _packet = require("./packet");
12var _incomingMessageStream = _interopRequireDefault(require("./incoming-message-stream"));
13var _outgoingMessageStream = _interopRequireDefault(require("./outgoing-message-stream"));
14function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
15function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17class MessageIO extends _events.EventEmitter {
18 constructor(socket, packetSize, debug) {
19 super();
20 this.socket = socket;
21 this.debug = debug;
22 this.tlsNegotiationComplete = false;
23 this.incomingMessageStream = new _incomingMessageStream.default(this.debug);
24 this.incomingMessageIterator = this.incomingMessageStream[Symbol.asyncIterator]();
25 this.outgoingMessageStream = new _outgoingMessageStream.default(this.debug, {
26 packetSize: packetSize
27 });
28 this.socket.pipe(this.incomingMessageStream);
29 this.outgoingMessageStream.pipe(this.socket);
30 }
31 packetSize(...args) {
32 if (args.length > 0) {
33 const packetSize = args[0];
34 this.debug.log('Packet size changed from ' + this.outgoingMessageStream.packetSize + ' to ' + packetSize);
35 this.outgoingMessageStream.packetSize = packetSize;
36 }
37 if (this.securePair) {
38 this.securePair.cleartext.setMaxSendFragment(this.outgoingMessageStream.packetSize);
39 }
40 return this.outgoingMessageStream.packetSize;
41 }
42
43 // Negotiate TLS encryption.
44 startTls(credentialsDetails, hostname, trustServerCertificate) {
45 if (!credentialsDetails.maxVersion || !['TLSv1.2', 'TLSv1.1', 'TLSv1'].includes(credentialsDetails.maxVersion)) {
46 credentialsDetails.maxVersion = 'TLSv1.2';
47 }
48 const secureContext = tls.createSecureContext(credentialsDetails);
49 return new Promise((resolve, reject) => {
50 const duplexpair = new _nativeDuplexpair.default();
51 const securePair = this.securePair = {
52 cleartext: tls.connect({
53 socket: duplexpair.socket1,
54 servername: hostname,
55 secureContext: secureContext,
56 rejectUnauthorized: !trustServerCertificate
57 }),
58 encrypted: duplexpair.socket2
59 };
60 const onSecureConnect = () => {
61 securePair.encrypted.removeListener('readable', onReadable);
62 securePair.cleartext.removeListener('error', onError);
63 securePair.cleartext.removeListener('secureConnect', onSecureConnect);
64
65 // If we encounter any errors from this point on,
66 // we just forward them to the actual network socket.
67 securePair.cleartext.once('error', err => {
68 this.socket.destroy(err);
69 });
70 const cipher = securePair.cleartext.getCipher();
71 if (cipher) {
72 this.debug.log('TLS negotiated (' + cipher.name + ', ' + cipher.version + ')');
73 }
74 this.emit('secure', securePair.cleartext);
75 securePair.cleartext.setMaxSendFragment(this.outgoingMessageStream.packetSize);
76 this.outgoingMessageStream.unpipe(this.socket);
77 this.socket.unpipe(this.incomingMessageStream);
78 this.socket.pipe(securePair.encrypted);
79 securePair.encrypted.pipe(this.socket);
80 securePair.cleartext.pipe(this.incomingMessageStream);
81 this.outgoingMessageStream.pipe(securePair.cleartext);
82 this.tlsNegotiationComplete = true;
83 resolve();
84 };
85 const onError = err => {
86 securePair.encrypted.removeListener('readable', onReadable);
87 securePair.cleartext.removeListener('error', onError);
88 securePair.cleartext.removeListener('secureConnect', onSecureConnect);
89 securePair.cleartext.destroy();
90 securePair.encrypted.destroy();
91 reject(err);
92 };
93 const onReadable = () => {
94 // When there is handshake data on the encrypted stream of the secure pair,
95 // we wrap it into a `PRELOGIN` message and send it to the server.
96 //
97 // For each `PRELOGIN` message we sent we get back exactly one response message
98 // that contains the server's handshake response data.
99 const message = new _message.default({
100 type: _packet.TYPE.PRELOGIN,
101 resetConnection: false
102 });
103 let chunk;
104 while (chunk = securePair.encrypted.read()) {
105 message.write(chunk);
106 }
107 this.outgoingMessageStream.write(message);
108 message.end();
109 this.readMessage().then(async response => {
110 // Setup readable handler for the next round of handshaking.
111 // If we encounter a `secureConnect` on the cleartext side
112 // of the secure pair, the `readable` handler is cleared
113 // and no further handshake handling will happen.
114 securePair.encrypted.once('readable', onReadable);
115 for await (const data of response) {
116 // We feed the server's handshake response back into the
117 // encrypted end of the secure pair.
118 securePair.encrypted.write(data);
119 }
120 }).catch(onError);
121 };
122 securePair.cleartext.once('error', onError);
123 securePair.cleartext.once('secureConnect', onSecureConnect);
124 securePair.encrypted.once('readable', onReadable);
125 });
126 }
127
128 // TODO listen for 'drain' event when socket.write returns false.
129 // TODO implement incomplete request cancelation (2.2.1.6)
130 sendMessage(packetType, data, resetConnection) {
131 const message = new _message.default({
132 type: packetType,
133 resetConnection: resetConnection
134 });
135 message.end(data);
136 this.outgoingMessageStream.write(message);
137 return message;
138 }
139
140 /**
141 * Read the next incoming message from the socket.
142 */
143 async readMessage() {
144 const result = await this.incomingMessageIterator.next();
145 if (result.done) {
146 throw new Error('unexpected end of message stream');
147 }
148 return result.value;
149 }
150}
151var _default = exports.default = MessageIO;
152module.exports = MessageIO;
153//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfbmF0aXZlRHVwbGV4cGFpciIsIl9pbnRlcm9wUmVxdWlyZURlZmF1bHQiLCJyZXF1aXJlIiwidGxzIiwiX2ludGVyb3BSZXF1aXJlV2lsZGNhcmQiLCJfZXZlbnRzIiwiX21lc3NhZ2UiLCJfcGFja2V0IiwiX2luY29taW5nTW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