]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/acl/external/kerberos_ldap_group/support_sasl.cc
Maintenance: rework SASL detection (#1694)
[thirdparty/squid.git] / src / acl / external / kerberos_ldap_group / support_sasl.cc
index 6633c7c5349808341e0bb5834ce2fe08beaef479..1b62c62e5fa25f9364d177df9315c2c3728fef04 100644 (file)
 #include <sasl.h>
 #elif HAVE_SASL_SASL_H
 #include <sasl/sasl.h>
-#elif HAVE_SASL_DARWIN
-typedef struct sasl_interact {
-    unsigned long id;       /* same as client/user callback ID */
-    const char *challenge;  /* presented to user (e.g. OTP challenge) */
-    const char *prompt;     /* presented to user (e.g. "Username: ") */
-    const char *defresult;  /* default result string */
-    const void *result;     /* set to point to result */
-    unsigned len;       /* set to length of result */
-} sasl_interact_t;
-
-#define SASL_CB_USER         0x4001 /* client user identity to login as */
-#define SASL_CB_AUTHNAME     0x4002 /* client authentication name */
-#define SASL_CB_PASS         0x4004 /* client passphrase-based secret */
-#define SASL_CB_ECHOPROMPT   0x4005 /* challenge and client enterred result */
-#define SASL_CB_NOECHOPROMPT 0x4006 /* challenge and client enterred result */
-#define SASL_CB_GETREALM     0x4008 /* realm to attempt authentication in */
-#define SASL_CB_LIST_END   0    /* end of list */
 #endif
 
-#if HAVE_SASL_H || HAVE_SASL_SASL_H || HAVE_SASL_DARWIN
+#if HAVE_SASL_H || HAVE_SASL_SASL_H
 void *lutil_sasl_defaults(
     LDAP * ld,
     char *mech,