#include "clientvencryptplainauthenticationmessage.h"
#include <QIODevice>

ClientVeNCryptPlainAuthenticationMessage::ClientVeNCryptPlainAuthenticationMessage() :
        ClientMessageBase()
{
}
void ClientVeNCryptPlainAuthenticationMessage::writeBytes( QIODevice *device ) const
{
    writeUint8(device, m_username.toUtf8().length());
    writeUint8(device, m_password.toUtf8().length());
    device->write( m_username.toUtf8() );
    device->write( m_password.toUtf8() );
}

void ClientVeNCryptPlainAuthenticationMessage::setUserInfo( const QString &uname, const QString &passwd )
{
    m_username = uname;
    m_password = passwd;
}


