]> git.stg.codes - stg.git/blob - projects/sgauthstress/user.cpp
bea1c6b7126b47c3b650f2ad79b69f40a316a673
[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 }