-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# [6.0.0](v5.6.2...v6.0.0) (2022-08-21) ### Features * Add complete server/client TLS support ([#158](#158)) ([3264f44](3264f44)) ### BREAKING CHANGES * TLS client API now matches NodeJS official tls API.
- Loading branch information
1 parent
3264f44
commit 3cf5a1a
Showing
8 changed files
with
79 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
/** | ||
* @typedef {object} TLSSocketOptions | ||
* @property {any} [ca] | ||
* | ||
* @extends {Socket} | ||
*/ | ||
export default class TLSSocket extends Socket { | ||
/** | ||
* @param {Socket} socket Any instance of `Socket`. | ||
* @param {object} options Options for the TLS socket. | ||
* @param {TLSSocketOptions} [options] Options for the TLS socket. | ||
*/ | ||
constructor(socket: Socket, options: object); | ||
constructor(socket: Socket, options?: TLSSocketOptions | undefined); | ||
/** @private */ | ||
private _options; | ||
/** @private */ | ||
private _socket; | ||
/** | ||
* @private | ||
*/ | ||
private _initialize; | ||
/** | ||
* @private | ||
*/ | ||
private _startTLS; | ||
} | ||
export type TLSSocketOptions = { | ||
ca?: any; | ||
}; | ||
import Socket from "./Socket"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters