]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/user.cpp
Port to CMake, get rid of os_int.h.
[stg.git] / projects / sgauthstress / user.cpp
diff --git a/projects/sgauthstress/user.cpp b/projects/sgauthstress/user.cpp
deleted file mode 100644 (file)
index 15fb1ec..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <cstring>
-
-#include "user.h"
-
-USER::USER(const std::string & l,
-           const std::string & pwd,
-           uint32_t i)
-    : login(l),
-      password(pwd),
-      ip(i),
-      aliveTimeout(0),
-      userTimeout(0),
-      phase(1),
-      phaseChangeTime(0),
-      rnd(0)
-{
-unsigned char key[IA_PASSWD_LEN];
-memset(key, 0, IA_PASSWD_LEN);
-strncpy((char *)key, password.c_str(), IA_PASSWD_LEN);
-Blowfish_Init(&ctx, key, IA_PASSWD_LEN);
-
-sock = socket(AF_INET, SOCK_DGRAM, 0);
-}
-
-USER::~USER()
-{
-close(sock);
-}