Explanation and warnings about OPT_X_TLS_CTX and OPT_X_TLS_SSL_CTX.

This commit is contained in:
Howard Chu 2009-08-26 23:12:47 +00:00
parent c012c105ba
commit ff9693a15d

View file

@ -653,13 +653,16 @@ and its contents need to be freed by the caller using
This option is only valid for GnuTLS.
.TP
.B LDAP_OPT_X_TLS_CTX
Sets/gets the OpenSSL CTX.
Sets/gets the TLS library context associated with this handle.
.BR invalue
must be
.BR "const void *" ;
.BR outvalue
must be
.BR "void **" .
When using the OpenSSL library this is an SSL_CTX*. When using other
crypto libraries this is an OpenLDAP private structure. Applications
generally should not use this option.
.TP
.B LDAP_OPT_X_TLS_DHFILE
Gets/sets the full-path of the file containing the parameters
@ -729,10 +732,13 @@ one of
.BR LDAP_OPT_X_TLS_TRY .
.TP
.B LDAP_OPT_X_TLS_SSL_CTX
Gets the OpenSSL SSL CTX;
Gets the OpenSSL SSL CTX associated with this handle.
.BR outvalue
must be
.BR "void **" .
When using the OpenSSL library this is an SSL*. When using other
crypto libraries this is an OpenLDAP private structure. Applications
generally should not use this option.
.SH ERRORS
On success, the functions return
.BR LDAP_OPT_SUCCESS ,