Hi,
I was testing out anonymous login functionality with some older gloox v1
code and discovered that I couldn't login.
In client.cpp this code determines whether or not you will login anonymous.
else if( m_doAuth && m_streamFeatures & SaslMechAnonymous
&& m_availableSaslMechs & SaslMechAnonymous )
{
notifyStreamEvent( StreamEventAuthentication );
startSASL( SaslMechAnonymous );
}
However, constructing a client for that sets m_doAuth( false)
Client::Client( const std::string& server )
: ClientBase( XMLNS_CLIENT, server ),
m_rosterManager( 0 ), m_auth( 0 ),
m_presence( Presence::Available, JID() ), m_resourceBound( false ),
m_forceNonSasl( false ), m_manageRoster( true ), m_doAuth( false),
m_streamFeatures( 0 ), m_priority( 0 )
{
unless I missed it, there isn't a way to set m_doAuth true anyplace else.
So, which is the better path, changing the if statement to !m_doAuth or
changing the client construction?
thanks,
jon