/*
This file is part of GNUnet.
- Copyright (C) 2009 Christian Grothoff Jeff Burdges, and other contributing authors
+ Copyright (C) 2015 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
struct GNUNET_MessageHeader msg;
GNUNET_assert (got != NULL); /* timeout */
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Receiving bounce, checking content\n");
msg.type = htons (MY_TYPE);
msg.size = htons (sizeof (struct GNUNET_MessageHeader));
static void
-task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
+task (void *cls)
{
struct sockaddr_in sa;
struct sockaddr *sap[2];
pid_t pid = fork();
GNUNET_assert (pid >= 0);
- if (pid == 0)
+ if (pid == 0)
{
execlp ("ssh",
- "ssh",
- "-D",
- socksport,
- "127.0.0.1",
- "-N",
- NULL);
- perror ("execlp (\"ssh\",\"ssh\",\"-D\",\"1081\",\"127.0.0.1\",\"-N\") ");
+ "ssh","-D",socksport,
+ "-o","BatchMode yes",
+ "-o","UserKnownHostsFile /tmp/gnunet_test_socks_ssh_garbage",
+ "-o","StrictHostKeyChecking no",
+ "127.0.0.1","-N",(char*)NULL);
+ perror ("execlp (\"ssh\",\"ssh\",...,\"-D\",\"1081\",\"127.0.0.1\",\"-N\") ");
printf (""
"Please ensure you have ssh installed and have sshd installed and running :\n"
"\tsudo apt-get install openssh-client openssh-server\n"