|
@@ -63,13 +63,13 @@ int do_cmd_lself(char *);
|
|
|
|
|
|
|
|
int init_socket(const char *server_addr, int server_port);
|
|
int init_socket(const char *server_addr, int server_port);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
int fd;
|
|
int fd;
|
|
|
int rate;
|
|
int rate;
|
|
|
|
|
|
|
|
char usrname[USRNAME_SIZE];
|
|
char usrname[USRNAME_SIZE];
|
|
|
struct klist_node banned_people = KLIST_NODE_INIT(&banned_people);
|
|
struct klist_node banned_people = KLIST_NODE_INIT(&banned_people);
|
|
|
|
|
|
|
|
|
|
+extern int crypt_disabled;
|
|
|
extern int current_sid;
|
|
extern int current_sid;
|
|
|
|
|
|
|
|
static char const *help_msg = {
|
|
static char const *help_msg = {
|
|
@@ -127,11 +127,17 @@ int vos_login(void) {
|
|
|
vcc_login(usrname, passwd);
|
|
vcc_login(usrname, passwd);
|
|
|
do_cmd_lself(NULL);
|
|
do_cmd_lself(NULL);
|
|
|
|
|
|
|
|
|
|
+ show_algo_info();
|
|
|
|
|
+
|
|
|
/* crypt_init will copy that into a heap buffer */
|
|
/* crypt_init will copy that into a heap buffer */
|
|
|
|
|
|
|
|
- if (!(key = getenv("VOS_KEY")) || !(iv = getenv("VOS_IV")))
|
|
|
|
|
|
|
+ if (!(key = getenv("VOS_KEY")) || !(iv = getenv("VOS_IV"))) {
|
|
|
|
|
+ fprintf(stderr, "warning: crypting disabled. \n");
|
|
|
|
|
+ crypt_disabled = 1;
|
|
|
|
|
+
|
|
|
return 1;
|
|
return 1;
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
crypt_init(key, iv);
|
|
crypt_init(key, iv);
|
|
|
|
|
|
|
|
return 1;
|
|
return 1;
|