}
if (inst->handle_config.tls_min_version_str) {
+#ifdef LDAP_OPT_X_TLS_PROTOCOL_TLS1_3
if (strcmp(inst->handle_config.tls_min_version_str, "1.3") == 0) {
inst->handle_config.tls_min_version = LDAP_OPT_X_TLS_PROTOCOL_TLS1_3;
- } else if (strcmp(inst->handle_config.tls_min_version_str, "1.2") == 0) {
+ } else
+#endif
+ if (strcmp(inst->handle_config.tls_min_version_str, "1.2") == 0) {
inst->handle_config.tls_min_version = LDAP_OPT_X_TLS_PROTOCOL_TLS1_2;
} else if (strcmp(inst->handle_config.tls_min_version_str, "1.1") == 0) {