--On Wednesday, October 9, 2019 3:23 PM +0000 Howard.Gillison(a)gvltec.edu
wrote:
Good morning to you,
I suggest you read the OpenLDAP client code and the libldap code which
fully utilizes the API to make connections with or without TLS. I think
the *function* you're looking for is ldap_start_tls_s (at least for
startTLS over port 389):
<
https://www.openldap.org/software/man.cgi?query=ldap_start_tls_s&apro...
From the library, I would suggest perusing libldap/init.c,
libldap/open.c,
libldap/options.c, and libldap/unbind.c
Since this is open source software it is of course trivial to access the
code and have working examples before you.
Regards,
Quanah
--
Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<
http://www.symas.com>