Updated to new client build

This commit is contained in:
tomrus88 2009-03-04 14:58:11 +03:00
parent 2197da6407
commit e6a66cdc54
18 changed files with 360 additions and 188 deletions

30
src/shared/Auth/SARC4.cpp Normal file
View file

@ -0,0 +1,30 @@
/*
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "Auth/SARC4.h"
#include "BigNumber.h"
void SARC4::Init(uint32 len, uint8 *seed)
{
RC4_set_key(&m_rc4_key, len, seed);
}
void SARC4::Process(uint32 len, uint8 *indata, uint8 *outdata)
{
RC4(&m_rc4_key, len, indata, outdata);
}