diff --git a/src/server/slavefuncs.c b/src/server/slavefuncs.c --- a/src/server/slavefuncs.c +++ b/src/server/slavefuncs.c @@ -21,13 +21,15 @@ * Registration on server. Needs attention. Prevent account spamming. * distrenslave -c username email@example.com */ +#include + void registeruser(char *username, char *email){ /* * Logs into sandboxed user on zserver2 and registers a user. Should eventually generate a key on the server and return it to the user. * All created user accounts should be sandboxed accordingly, requiring a different skel, and the default shell to be rbash. Also, * a custom path defined in the .bash_profile of the skel is needed. */ - char *keyurl; // Url to the key + char *keyname; // Url to the key char buf[10]; struct execio *testrem; char *execargv[] = @@ -62,7 +64,7 @@ void registeruser(char *username, char * } execio_close(testrem); - exec('exec wget http://protofusion.org/distren/keys/%s',keyname); // Download the key + exec('exec wget http://protofusion.org/distren/keys/%s',keyname); // Download the key with cURL!!! /* TODO: Scan distrenslave.conf for !username and !key and replace them with "keyname" and the "username" */ }