From ce1e201343a1aa5e7636a9f99c7c75aeafa7f6c6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 12 Jun 2010 22:10:16 +0000 Subject: [PATCH] add ifdefs for SASL_GSS_CREDS to accomodate ancient Cyrus SASL --- libraries/libldap/cyrus.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5