Skip to content
Snippets Groups Projects
Commit 9f7d119c authored by Howard Chu's avatar Howard Chu
Browse files

Add LDAP_OPT_X_TLS_PACKAGE

to return the name of the underlying TLS implementation
parent 329e7937
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,7 @@ LDAP_BEGIN_DECL
#define LDAP_OPT_X_TLS_DHFILE 0x600e
#define LDAP_OPT_X_TLS_NEWCTX 0x600f
#define LDAP_OPT_X_TLS_CRLFILE 0x6010 /* GNUtls only */
#define LDAP_OPT_X_TLS_PACKAGE 0x6011
#define LDAP_OPT_X_TLS_NEVER 0
#define LDAP_OPT_X_TLS_HARD 1
......
......@@ -578,6 +578,11 @@ ldap_pvt_tls_get_option( LDAP *ld, int option, void *arg )
{
struct ldapoptions *lo;
if( option == LDAP_OPT_X_TLS_PACKAGE ) {
*(char **)arg = LDAP_STRDUP( tls_imp->ti_name );
return 0;
}
if( ld != NULL ) {
assert( LDAP_VALID( ld ) );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment