]> diplodocus.org Git - nmh/commitdiff
Make it so we always return the chosen mechanism, even if we aren't
authorKen Hornstein <kenh@pobox.com>
Fri, 23 Sep 2016 23:52:09 +0000 (19:52 -0400)
committerKen Hornstein <kenh@pobox.com>
Fri, 23 Sep 2016 23:52:09 +0000 (19:52 -0400)
using the Cyrus SASL library; this makes XOAUTH2 work without
Cyrus-SASL.

sbr/netsec.c

index c56de84..93218aa 100644 (file)
@@ -1378,13 +1378,7 @@ netsec_negotiate_sasl(netsec_context *nsc, const char *mechlist, char **errstr)
 char *
 netsec_get_sasl_mechanism(netsec_context *nsc)
 {
-#ifdef CYRUS_SASL
     return nsc->sasl_chosen_mech;
-#else /* CYRUS_SASL */
-    NMH_UNUSED(nsc);
-
-    return NULL;
-#endif /* CYRUS_SASL */
 }
 
 /*