From d461c6561e10e0c09785d2665a0dfe48eb109db2 Mon Sep 17 00:00:00 2001 From: Tina_Azure <-> Date: Sat, 22 Apr 2023 22:56:01 +0200 Subject: [PATCH] base SSL implementation todo::move cert into config --- Makefile | 2 +- src/main.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9a2d0d2..4b016e4 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ all: g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -pthread build: - g++ $(INC) -o cavecomm $(SRCFILES) -lpqxx -lfmt -l:libsmtpclient.a -lcrypto -lssl -pthread + g++ $(INC) -o cavecomm $(SRCFILES) -DCROW_ENABLE_SSL -lpqxx -lfmt -l:libsmtpclient.a -lcrypto -lssl -pthread release: mkdir bin diff --git a/src/main.cpp b/src/main.cpp index 84d4e85..0147b0d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -510,5 +510,7 @@ int main(int argc, char *argv[]) { */ //set the port, set the app to run on multiple threads, and run the app + //todo:properly setup SSL + app.ssl_file("/media/sf_cavecommRemote/example.crt", "/media/sf_cavecommRemote/example.key"); app.port(18080).multithreaded().run(); }