int sf = 0; if(!allowPlain) sf |= SASL_SEC_NOPLAINTEXT;   sasl_security_properties_t secprops; secprops.min_ssf = 0; secprops.max_ssf = 256; secprops.maxbufsize = 8192; secprops.property_names = NULL; secprops.property_values = NULL; secprops.security_flags = sf; sasl_setprop(con, SASL_SEC_PROPS, &secprops);
setsecprops();
	bool clientStart(const QStringList &_mechlist)	{		int r = sasl_client_new(service.latin1(), host.latin1(), localAddr.isEmpty() ? 0 : localAddr.latin1(), remoteAddr.isEmpty() ? 0 : remoteAddr.latin1(), clientcbs, 0, &con);		if(r != SASL_OK)			return false;		int sf = 0;		if(!allowPlain)			sf |= SASL_SEC_NOPLAINTEXT;		// set security properties		sasl_security_properties_t secprops;		secprops.min_ssf = 0;		secprops.max_ssf = 256;		secprops.maxbufsize = 8192;		secprops.property_names = NULL;		secprops.property_values = NULL;		secprops.security_flags = sf;		sasl_setprop(con, SASL_SEC_PROPS, &secprops);		mechlist = _mechlist;		servermode = false;		return true;	}