aboutsummaryrefslogtreecommitdiffstats
path: root/src/ranch_ssl.erl
diff options
context:
space:
mode:
authorAlexandru Munteanu <[email protected]>2016-10-28 04:45:01 +0200
committerLoïc Hoguin <[email protected]>2016-11-01 23:10:07 +0200
commit4d487ac60c3a4962a8280acfcf265b2523b2d76e (patch)
tree2b0ec6f47aa0afe4cb56e56302aeff80eb451a94 /src/ranch_ssl.erl
parenteafd62e47eae2bb85b5863440a50cbf346ab05e2 (diff)
downloadranch-4d487ac60c3a4962a8280acfcf265b2523b2d76e.tar.gz
ranch-4d487ac60c3a4962a8280acfcf265b2523b2d76e.tar.bz2
ranch-4d487ac60c3a4962a8280acfcf265b2523b2d76e.zip
Add SSL options for legacy software interoperability
Diffstat (limited to 'src/ranch_ssl.erl')
-rw-r--r--src/ranch_ssl.erl15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl
index 8fe09dc..913761d 100644
--- a/src/ranch_ssl.erl
+++ b/src/ranch_ssl.erl
@@ -37,6 +37,7 @@
-export([close/1]).
-type ssl_opt() :: {alpn_preferred_protocols, [binary()]}
+ | {beast_mitigation, one_n_minus_one | zero_n | disabled}
| {cacertfile, string()}
| {cacerts, [public_key:der_encoded()]}
| {cert, public_key:der_encoded()}
@@ -55,6 +56,7 @@
| {keyfile, string()}
| {log_alert, boolean()}
| {next_protocols_advertised, [binary()]}
+ | {padding_check, boolean()}
| {partial_chain, fun(([public_key:der_encoded()]) -> {trusted_ca, public_key:der_encoded()} | unknown_ca)}
| {password, string()}
| {psk_identity, string()}
@@ -65,6 +67,7 @@
| {sni_fun, fun()}
| {sni_hosts, [{string(), ssl_opt()}]}
| {user_lookup_fun, {fun(), any()}}
+ | {v2_hello_compatible, boolean()}
| {verify, ssl:verify_type()}
| {verify_fun, {fun(), any()}}
| {versions, [atom()]}.
@@ -101,12 +104,12 @@ listen(Opts) ->
{reuseaddr, true}, {nodelay, true}])).
listen_options() ->
- [alpn_preferred_protocols, cacertfile, cacerts, cert, certfile,
- ciphers, client_renegotiation, crl_cache, crl_check, depth,
- dh, dhfile, fail_if_no_peer_cert, hibernate_after, honor_cipher_order,
- key, keyfile, log_alert, next_protocols_advertised, partial_chain,
- password, psk_identity, reuse_session, reuse_sessions, secure_renegotiate,
- signature_algs, sni_fun, sni_hosts, user_lookup_fun, verify, verify_fun, versions
+ [alpn_preferred_protocols, beast_mitigation, cacertfile, cacerts, cert, certfile,
+ ciphers, client_renegotiation, crl_cache, crl_check, depth, dh, dhfile,
+ fail_if_no_peer_cert, hibernate_after, honor_cipher_order, key, keyfile,
+ log_alert, next_protocols_advertised, partial_chain, password, padding_check,
+ psk_identity, reuse_session, reuse_sessions, secure_renegotiate, signature_algs,
+ sni_fun, sni_hosts, user_lookup_fun, v2_hello_compatible, verify, verify_fun, versions
|ranch_tcp:listen_options()].
-spec accept(ssl:sslsocket(), timeout())