forked from erlang/otp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add max_plain_text_length option to ssl:listen.
This corresponds to OpenSSL's SSL_CTRL_SET_MAX_SEND_FRAGMENT option, and allows the size of plain text fragments to be specified. This is useful, for example, for talking to embedded devices with limited resources. This is different from the max_fragment_length negotiation specified by RFC 6066: - RFC 6066 is an extension to TLS 1.2; this supports TLS 1.1. - RFC 6066 only allows 512-, 1024-, 2048- and 4096-byte fragment sizes; this allows arbitrary values, 512 <= N <= 16384. Unfortunately, this requires the server to _know_ what the client's expecting; this is an acceptable trade-off in this scenario.
- Loading branch information
1 parent
a407ab0
commit 71c53d2
Showing
4 changed files
with
17 additions
and
10 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
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