Made a working ssh proxy server
This commit is contained in:
parent
e840c06181
commit
8c04f0d56d
12 changed files with 573 additions and 410 deletions
|
@ -1,6 +1,6 @@
|
|||
CC=clang
|
||||
DEBUG=-g
|
||||
CFLAGS= ${DEBUG} -Wall -Werror -Wextra
|
||||
CFLAGS= ${DEBUG} -Wall -Werror -Wextra -Weverything -Wno-missing-prototypes -Wno-disabled-macro-expansion
|
||||
|
||||
sources=$(wildcard src/*.c)
|
||||
OBJ=$(sources:.c=.o)
|
||||
|
@ -8,7 +8,8 @@ OBJ=$(sources:.c=.o)
|
|||
all: bastion
|
||||
|
||||
bastion: $(OBJ)
|
||||
$(CC) ${DEBUG} -o bastion $(OBJ) -lssh -lpthread -lssh_threads -lutil
|
||||
#$(CC) ${DEBUG} -o bastion $(OBJ) -lssh -lutil -lpthread -lssh_threads
|
||||
$(CC) ${DEBUG} -o bastion $(OBJ) -lssh -lutil
|
||||
|
||||
clean:
|
||||
$(RM) bastion *.[do] src/*.[do]
|
||||
|
@ -22,5 +23,5 @@ clean:
|
|||
@rm -f $*.d.tmp
|
||||
|
||||
valgrind:
|
||||
valgrind --leak-check=full --show-leak-kinds=all --suppressions=$HOME/.valgrind_suppressions ./bastion
|
||||
#valgrind -v --leak-check=full --show-leak-kinds=all --suppressions=$HOME/.valgrind_suppressions --gen-suppressions=yes ./bastion
|
||||
valgrind --leak-check=full --show-leak-kinds=all --trace-children=yes --suppressions=${HOME}/.valgrind_suppressions ./bastion
|
||||
#valgrind -v --leak-check=full --show-leak-kinds=all --trace-children=yes --suppressions=${HOME}/.valgrind_suppressions --gen-suppressions=yes ./bastion
|
||||
|
|
Reference in a new issue