Skip to content

Commit

Permalink
Added ability to verify server certificate.
Browse files Browse the repository at this point in the history
Fixed #14.
  • Loading branch information
reklatsmasters committed Sep 4, 2018
1 parent b440217 commit 8125f24
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ Optional [unicast](https://www.npmjs.com/package/unicast) or [dgram](https://nod

This option enable the use [Extended Master Secret](https://tools.ietf.org/html/rfc7627) extension. Enabled by default.

* `options.checkServerIdentity: function(certificate): bool`

Optional certificate verify function.

* `class Socket`

A `Socket` is also a [duplex stream](https://nodejs.org/api/stream.html#stream_class_stream_duplex), so it can be both readable and writable, and it is also a [EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter).
Expand Down
7 changes: 7 additions & 0 deletions src/node_modules/fsm/protocol.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/node_modules/lib/socket.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/node_modules/session/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8125f24

Please sign in to comment.