From f1ac6ef8274009612774b63c1bb7259ee8abdb7b Mon Sep 17 00:00:00 2001 From: anupamasingh10 Date: Mon, 27 Feb 2023 10:22:10 +0100 Subject: Add new api conn_info for SSL connections to LDAP server --- lib/eldap/doc/src/eldap.xml | 12 ++++++------ lib/ssl/src/ssl.erl | 4 +++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/eldap/doc/src/eldap.xml b/lib/eldap/doc/src/eldap.xml index 8f08514886..5efcbd4c86 100644 --- a/lib/eldap/doc/src/eldap.xml +++ b/lib/eldap/doc/src/eldap.xml @@ -550,20 +550,20 @@ Control2 = eldap:paged_result_control(PageSize, Cookie1), conn_info(Handle) -> {ok, Data} | {error, Reason} - Returns all the connection information. + When LDAP is run over TLS, returns information about the TLS connection. Handle = handle() Data = ssl:connection_info() -

Returns the most relevant information for SSL connection to an LDAP server, ssl options - that are undefined will be filtered out. Note that values that affect the security of the - connection will only be returned if explicitly requested by conn_info/2.

+

Returns the most relevant information for SSL connection to an LDAP server. + See also ssl:connection_information/1.

conn_info(Handle, Items) -> {ok, Data} | {error, Reason} - Returns the requested connection information. + When LDAP is run over TLS, returns requested information items about the TLS + connection. Handle = handle() @@ -571,7 +571,7 @@ Control2 = eldap:paged_result_control(PageSize, Cookie1), Data = ssl:connection_info()

Returns the requested information items about the SSL connection to LDAP server, - if they are defined.

+ if they are defined. See also ssl:connection_information/2.

diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl index ad5028655d..08ebfae269 100644 --- a/lib/ssl/src/ssl.erl +++ b/lib/ssl/src/ssl.erl @@ -138,7 +138,9 @@ srp_param_type/0, named_curve/0, sign_scheme/0, - group/0]). + group/0, + connection_info/0, + connection_info_items/0]). %% ------------------------------------------------------------------------------------------------------- -- cgit v1.2.1