Skip to content
Snippets Groups Projects
Commit 6cb60f38 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Eliminate second session protocol version field.

parent 6c6ecc15
Branches
Tags
No related merge requests found
......@@ -99,7 +99,7 @@ struct ldapoptions {
struct timeval *ldo_tm_api;
struct timeval *ldo_tm_net;
ber_int_t ldo_version; /* version to connect at */
ber_int_t ldo_version;
ber_int_t ldo_deref;
ber_int_t ldo_timelimit;
ber_int_t ldo_sizelimit;
......@@ -234,7 +234,7 @@ struct ldap {
#define ld_sctrls ld_options.ldo_sctrls
#define ld_cctrls ld_options.ldo_cctrls
ber_int_t ld_version; /* version connected at */
#define ld_version ld_options.ldo_version
char *ld_host;
int ld_port;
......
......@@ -161,9 +161,6 @@ ldap_create( LDAP **ldp )
#endif /* LDAP_CHARSET_8859 == LDAP_DEFAULT_CHARSET */
#endif /* STR_TRANSLATION && LDAP_DEFAULT_CHARSET */
/* we'll assume we're talking version 2 for now */
ld->ld_version = LDAP_VERSION2;
ber_pvt_sb_init( &(ld->ld_sb) );
*ldp = ld;
......
......@@ -198,11 +198,7 @@ ldap_get_option(
return LDAP_OPT_SUCCESS;
case LDAP_OPT_PROTOCOL_VERSION:
if ((ld != NULL) && ld->ld_version) {
* (int *) outvalue = ld->ld_version;
} else {
* (int *) outvalue = lo->ldo_version;
}
* (int *) outvalue = lo->ldo_version;
return LDAP_OPT_SUCCESS;
case LDAP_OPT_SERVER_CONTROLS:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment