1 #include <sys/socket.h>
2 #include <netinet/in.h>
7 #include "stg/ia_packets.h"
9 USER::USER(const std::string & l,
10 const std::string & pwd,
21 unsigned char key[IA_PASSWD_LEN];
22 memset(key, 0, IA_PASSWD_LEN);
23 strncpy((char *)key, password.c_str(), IA_PASSWD_LEN);
24 Blowfish_Init(&ctx, key, IA_PASSWD_LEN);
26 sock = socket(AF_INET, SOCK_DGRAM, 0);