/* [<][>][^][v][top][bottom][index][help] */
1 #pragma once
2 #ifndef SSH_H
3 #define SSH_H
4
5 #include <sys/syscall.h>
6 #include "ipc.h"
7
8 #define _real_execve NEXT_FNC(execve)
9 #define _real_execvp NEXT_FNC(execvp)
10 #define _real_execvpe NEXT_FNC(execvpe)
11
12 #define SSHD_BINARY "dmtcp_sshd"
13 #define SSHD_RECEIVE_FD 100
14
15 extern "C" void dmtcp_ssh_register_fds(int isSshd, int in, int out, int err,
16 int sock, int noStrictHostKeyChecking)
17 __attribute((weak));
18
19 void client_loop(int ssh_stdin, int ssh_stdout, int ssh_stderr, int remoteSock);
20
21 #endif