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;
#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;
#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;
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: