mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
ITS#8753 Document LDAP_OPT_X_TLS_PEERKEY_HASH
This commit is contained in:
parent
76947f2608
commit
a2a2ebba23
1 changed files with 11 additions and 0 deletions
|
|
@ -880,6 +880,17 @@ must be
|
|||
.BR "char **" ,
|
||||
and its contents need to be freed by the caller using
|
||||
.BR ldap_memfree (3).
|
||||
.TP
|
||||
.B LDAP_OPT_X_TLS_PEERKEY_HASH
|
||||
Sets the (public) key that the application expects the peer to be using.
|
||||
.B invalue
|
||||
must be
|
||||
.BR "const char *"
|
||||
containing the base64 encoding of the expected peer's key or in the format
|
||||
.B "<hashalg>:<peerkey hash base64 encoded>"
|
||||
where as a TLS session is established, the library will hash the peer's key
|
||||
with the provided hash algorithm and compare it with value provided and will
|
||||
only allow the session to continue if they match.
|
||||
.SH ERRORS
|
||||
On success, the functions return
|
||||
.BR LDAP_OPT_SUCCESS ,
|
||||
|
|
|
|||
Loading…
Reference in a new issue