avoid legacy mechs if we require CB
authorLuke Howard <lukeh@padl.com>
Mon, 27 Sep 2010 00:57:53 +0000 (02:57 +0200)
committerLuke Howard <lukeh@padl.com>
Mon, 27 Sep 2010 00:57:53 +0000 (02:57 +0200)
lib/client.c

index 1ba3874..daf3543 100644 (file)
@@ -555,6 +555,11 @@ int sasl_client_start(sasl_conn_t *conn,
            }
 
            /* Can we meet it's features? */
+            if (SASL_CB_PRESENT(c_conn->cparams) &&
+                !(m->m.plug->features & SASL_FEAT_CHANNEL_BINDING)) {
+                break;
+            }
+
            if ((m->m.plug->features & SASL_FEAT_NEEDSERVERFQDN)
                && !conn->serverFQDN) {
                break;