diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -90,10 +90,9 @@ int register_user(char *username, char * /* @TODO: Parse the output buffer or something to check when user creation fails due to duplicate users. This is pretty important. */ - // ssh_keygen(); // generates distren_rsa + ssh_keygen(); // generates keys for login, @TODO: pub key must somehow be sent to the server. conf_replace(username); // puts the person's username in the conf - /* @TODO: Scan distrenslave.conf for !username and !key and replace them with "keyname" and the "username" */ return 1; } @@ -158,7 +157,7 @@ int login_user(char *username) return 1; // 1 can be like... error-free login... } -/* Replaces username and key in the slave's conf file, currently pseudo */ +/* Replaces username and key in the slave's conf file */ void conf_replace(char *username){ /* Note: SYSCONFDIR doesn't include a trailing slash */