mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
add ifdefs for SASL_GSS_CREDS to accomodate ancient Cyrus SASL
This commit is contained in:
parent
004540b360
commit
ce1e201343
@ -1042,6 +1042,7 @@ ldap_int_sasl_get_option( LDAP *ld, int option, void *arg )
|
||||
/* this option is write only */
|
||||
return -1;
|
||||
|
||||
#ifdef SASL_GSS_CREDS
|
||||
case LDAP_OPT_X_SASL_GSS_CREDS: {
|
||||
sasl_conn_t *ctx;
|
||||
int sc;
|
||||
@ -1058,6 +1059,7 @@ ldap_int_sasl_get_option( LDAP *ld, int option, void *arg )
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return -1;
|
||||
@ -1141,6 +1143,7 @@ ldap_int_sasl_set_option( LDAP *ld, int option, void *arg )
|
||||
return sc == LDAP_SUCCESS ? 0 : -1;
|
||||
}
|
||||
|
||||
#ifdef SASL_GSS_CREDS
|
||||
case LDAP_OPT_X_SASL_GSS_CREDS: {
|
||||
sasl_conn_t *ctx;
|
||||
int sc;
|
||||
@ -1157,6 +1160,7 @@ ldap_int_sasl_set_option( LDAP *ld, int option, void *arg )
|
||||
return -1;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user