aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_internal.hrl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2015-05-05 16:03:18 +0200
committerIngela Anderton Andin <[email protected]>2015-05-12 14:04:06 +0200
commitff2400d7b5b1b090e128bc537d7bdd94c6aad97e (patch)
tree43ef1c0fdb4b7f9ce35d2dd7508e43de42325788 /lib/ssl/src/ssl_internal.hrl
parentdb509dd5debcd72d7f1d024d289315274f9b788b (diff)
downloadotp-ff2400d7b5b1b090e128bc537d7bdd94c6aad97e.tar.gz
otp-ff2400d7b5b1b090e128bc537d7bdd94c6aad97e.tar.bz2
otp-ff2400d7b5b1b090e128bc537d7bdd94c6aad97e.zip
ssl: Refactored and corrected sni_fun handling
Dialyzer warned about the incorrect match of Packets. Code was refactored and the problem avoided in the process. Dialyzer warned that the empty tuple is not a function as the contract said it should be. Changed the handling of the sni_fun default value to be undefined and added it to the contract.
Diffstat (limited to 'lib/ssl/src/ssl_internal.hrl')
-rw-r--r--lib/ssl/src/ssl_internal.hrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_internal.hrl b/lib/ssl/src/ssl_internal.hrl
index b6b4fc44df..baeae68bc4 100644
--- a/lib/ssl/src/ssl_internal.hrl
+++ b/lib/ssl/src/ssl_internal.hrl
@@ -123,7 +123,7 @@
log_alert :: boolean(),
server_name_indication = undefined,
sni_hosts :: [{inet:hostname(), [tuple()]}],
- sni_fun :: function(),
+ sni_fun :: function() | undefined,
%% Should the server prefer its own cipher order over the one provided by
%% the client?
honor_cipher_order = false :: boolean(),