Changeset - bbaf7619b582
[Not reviewed]
default
0 2 0
ethanzonca - 16 years ago 2009-07-30 14:51:47

Key variable isn't needed anymore
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/server/slavefuncs.c
Show inline comments
 
@@ -87,13 +87,13 @@ int register_user(char *username, char *
 
    }
 
  execio_close(testrem);
 

	
 
  /* @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
 

	
 
  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;
 
}
 

	
 

	
 
int login_user(char *username)
 
@@ -155,13 +155,13 @@ int login_user(char *username)
 
  execio_close(testrem);
 
  return 1; // 1 can be like... error-free login...
 
}
 

	
 
/* Replaces username and key in the slave's conf file, currently pseudo */
 

	
 
void conf_replace(char *username, char *key){
 
void conf_replace(char *username){
 
	// Doesn't delete anything! :D
 
/*
 
	mktemp(); // Gets a new file to put data into
 
	fopen('w'); // Open the file we created in write mode
 
	fopen('r'); // Open the conf file in read-only mode
 
	read(); // Read the created file, scanning for and replacing strings, whie
src/server/slavefuncs.h
Show inline comments
 
@@ -21,11 +21,11 @@
 
#define _DISTREN_SLAVEFUNCS_H
 
#include "blendjob.h"
 

	
 
int ssh_keygen();
 
int register_user(char *username, char *email);
 
int login_user(char *username);
 
void conf_replace(char *username, char *key);
 
void conf_replace(char *username);
 
void exec_blender(struct blendjob* blendjob, char *input, char *output, int frame);
 

	
 

	
 
#endif
0 comments (0 inline, 0 general)