1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-14 02:59:05 +00:00

add -R for DROPBEAR_DELAY_HOSTKEY

This commit is contained in:
Greg Alexander 2014-12-16 17:51:24 -05:00
parent 8a8b4c3acb
commit 9ea9717624

View File

@ -83,7 +83,7 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
pid = fork();
if (pid == 0) {
char *argv[10] = { "sshd", NULL };
char *argv[100] = { "sshd", NULL };
int argc = 1;
const char *logfn;
int logfd;
@ -96,6 +96,8 @@ Java_org_galexander_sshd_SimpleSSHDService_start_1sshd(JNIEnv *env_,
/* replace stderr, so the output is preserved... */
dup2(logfd, 2);
}
argv[argc++] = "-R"; /* enable DROPBEAR_DELAY_HOSTKEY */
if (port) {
argv[argc++] = "-p";
argv[argc] = malloc(20);