mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 19:49:35 -05:00
Add LDAP_OPT_X_TLS_PACKAGE
to return the name of the underlying TLS implementation
This commit is contained in:
parent
329e7937e6
commit
9f7d119ce3
2 changed files with 6 additions and 0 deletions
|
|
@ -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 ) );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue