14 #include "nonsaslauth.h"
42 const std::string&
id = m_parent->
getID();
48 Tag *q =
new Tag( iq,
"query" );
52 m_parent->
trackID(
this,
id, TRACK_REQUEST_AUTH_FIELDS );
62 m_parent->setAuthed(
false );
80 case TRACK_REQUEST_AUTH_FIELDS:
82 const std::string&
id = m_parent->
getID();
87 Tag *query =
new Tag( iq,
"query" );
93 if( ( q->hasChild(
"digest" ) ) && !m_sid.empty() )
99 new Tag( query,
"digest", sha.
hex() );
103 new Tag( query,
"password", m_parent->
password() );
106 m_parent->
trackID(
this,
id, TRACK_SEND_AUTH );
107 m_parent->
send( iq );
110 case TRACK_SEND_AUTH:
111 m_parent->setAuthed(
true );
112 m_parent->connected();