Changeset - 79cc67f57f6f
[Not reviewed]
default
0 1 0
ethanzonca - 16 years ago 2009-07-30 16:10:42

Comments
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/server/slavefuncs.c
Show inline comments
 
@@ -26,12 +26,13 @@
 
#include <stdio.h>
 
#include <string.h>
 
#include <unistd.h>
 
#include <stdlib.h> /*< malloc(), free() */
 

	
 
int ssh_keygen(){
 
	// Interesting issue, if they try to register twice, it will be interactive.
 
	fprintf(stderr, "We're generating your SSH key. Please be patient.\n");
 
	char *command = "ssh-keygen"; // append .exe if win32?
 
	char *path_to_command = "/usr/bin/ssh-keygen";
 
	int ret;
 
	char *cmd[] = { command, "-f", "username.rsa", "-N", "", (char *)0 }; // TODO: Give me the correct args!
 
	ret = execv(path_to_command, cmd); // This path will be absolute for testing, should be relative to install on production
0 comments (0 inline, 0 general)