aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib
diff options
context:
space:
mode:
authorQijiang Fan <[email protected]>2015-01-28 15:20:21 +0800
committerIngela Anderton Andin <[email protected]>2015-05-12 13:57:25 +0200
commit9fe3bc8eb1e982ecd4680d9f354dc6ba3f066904 (patch)
treed57cf90b37eb03b12e4e625a78b4729552607609 /lib/stdlib
parent1e2569973101aaccdbb0c552948134cb1a58a7fd (diff)
downloadotp-9fe3bc8eb1e982ecd4680d9f354dc6ba3f066904.tar.gz
otp-9fe3bc8eb1e982ecd4680d9f354dc6ba3f066904.tar.bz2
otp-9fe3bc8eb1e982ecd4680d9f354dc6ba3f066904.zip
ssl: add ssl:connection_information/[1,2]
This commit adds a new function, ssl:connection_information/[1,2] to retrive the connection information from a SSLSocket. And also, this deprecates a function ssl:connection_info/1, and reimplements connection_info/1 with the new function.
Diffstat (limited to 'lib/stdlib')
-rw-r--r--lib/stdlib/src/otp_internal.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stdlib/src/otp_internal.erl b/lib/stdlib/src/otp_internal.erl
index 24721da187..0340015c35 100644
--- a/lib/stdlib/src/otp_internal.erl
+++ b/lib/stdlib/src/otp_internal.erl
@@ -631,6 +631,9 @@ obsolete_1(erl_lint, modify_line, 2) ->
obsolete_1(ssl, negotiated_next_protocol, 1) ->
{deprecated,{ssl,negotiated_protocol,1}};
+obsolete_1(ssl, connection_info, 1) ->
+ {deprecated, "deprecated; use connection_information/[1,2] instead"};
+
obsolete_1(_, _, _) ->
no.