]> git.stg.codes - stg.git/blob - projects/sgauthstress/user.cpp
Add proto implementation and user state holder
[stg.git] / projects / sgauthstress / user.cpp
1 #include "user.h"
2
3 USER::USER(const std::string & l,
4            const std::string & pwd)
5     : login(l),
6       phase(1),
7       rnd(0),
8       sock(0)
9 {
10 char key[IA_PASSWD_LEN];
11 memset(key, 0, IA_PASSWD_LEN);
12 strncpy(key, password.c_str(), IA_PASSWD_LEN);
13 Blowfish_Init(&ctx, key, IA_PASSWD_LEN);
14 }
15
16 USER::~USER()
17 {
18 }
19
20 void USER::Connect()
21 {
22 }
23
24 void USER::Disconnect()
25 {
26 }