From: Howard Chu Date: Sat, 12 Jun 2010 22:10:16 +0000 (+0000) Subject: add ifdefs for SASL_GSS_CREDS to accomodate ancient Cyrus SASL X-Git-Tag: MIGRATION_CVS2GIT~580 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce1e201343a1aa5e7636a9f99c7c75aeafa7f6c6;p=openldap add ifdefs for SASL_GSS_CREDS to accomodate ancient Cyrus SASL --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index 9e5de05690..0f635b2aad 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -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;