ref: 13738d2aa200eeb5859525225ec1d7bec7e8134e
parent: 16d016b87e7783cecedb1078c1327fa1244da4d7
author: mkf <mkf@cloud9p.org>
date: Sat Nov 16 09:58:09 EST 2024
very little changes part 2
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-CC=cc
-CFLAGS += -O0 -g -Wall -lpcap -Wno-pointer-sign
+CC=cc
+CFLAGS += -O0 -pg -g -Wall -lcrypto -lssl -lpcap -Wno-pointer-sign -Wno-discarded-qualifiers
NROFF=mandoc
Lib=\
@@ -10,9 +10,11 @@
tcp.o\
dns.o\
tls.o\
+ der.o\
DnsParser= dnsparser.o
TlsParser= tlsparser.o
+TlsCertParser= tlscertparser.o
all:
@echo 'make dnsparser, tlsparser, tests or docs'
@@ -29,8 +31,17 @@
tlsparser: ${Lib} ${TlsParser}
$(CC) $(CFLAGS) -o $@ ${TlsParser} ${Lib}
+tlscertparser: ${Lib} ${TlsCertParser} cert.o
+ $(CC) $(CFLAGS) -o $@ ${TlsCertParser} ${Lib} cert.o
+
+tlsparser.v2: ${Lib} tlsparser.v2.o cert.o
+ $(CC) $(CFLAGS) -o $@ tlsparser.v2.o ${Lib} cert.o
+
+tlsparser.v3: ${Lib} tlsparser.v3.o cert.o
+ $(CC) $(CFLAGS) -o $@ tlsparser.v3.o ${Lib} cert.o
+
docs:
- $(NROFF) doc/parser.man | col -b > docs/parser.txt
+ $(NROFF) docs/parser.man | col -b > docs/parser.txt
clean:
- rm -f *.o dnsparser tlsparser docs/
+ rm -f *.o dnsparser tlsparser tlscertparser
--- a/build.rc
+++ b/build.rc
@@ -1,2 +1,3 @@
#!/bin/rc
+#os -d src/01-sniffer ./build.sh
os -d src/01-sniffer make $*