X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/28b410b2cc8630fc1b3466c6b3fb6214ba9396b6..6ce56fd8481f4fc5ae2cf9383e6b6ecbff42b41d:/projects/sgauthstress/user.cpp diff --git a/projects/sgauthstress/user.cpp b/projects/sgauthstress/user.cpp new file mode 100644 index 00000000..bea1c6b7 --- /dev/null +++ b/projects/sgauthstress/user.cpp @@ -0,0 +1,26 @@ +#include "user.h" + +USER::USER(const std::string & l, + const std::string & pwd) + : login(l), + phase(1), + rnd(0), + sock(0) +{ +char key[IA_PASSWD_LEN]; +memset(key, 0, IA_PASSWD_LEN); +strncpy(key, password.c_str(), IA_PASSWD_LEN); +Blowfish_Init(&ctx, key, IA_PASSWD_LEN); +} + +USER::~USER() +{ +} + +void USER::Connect() +{ +} + +void USER::Disconnect() +{ +}