kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 98af796acd770fd2cee91b470352904a5b56f137
parent 6665ad9c453989011de80edd91e9bea8f23633f7
Author: Joris Vink <joris@coders.se>
Date:   Wed, 18 Apr 2018 19:51:25 +0000

Improve kodev a tiny bit.

kodev is creating x509s and writing out the dh parameters if they
do not exist in the application each time. This is annoying if
you explictly specified NOTLS=1 in the kore_flavor build options.

So just tell kodev to not do this if NOTLS=1 is present.

Diffstat:
src/cli.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/cli.c b/src/cli.c @@ -683,9 +683,12 @@ cli_build(int argc, char **argv) free(assets_header); - if (!cli_dir_exists("cert")) { - cli_mkdir("cert", 0700); - cli_generate_certs(); + if (bopt->kore_flavor == NULL || + !strstr(bopt->kore_flavor, "NOTLS=1")) { + if (!cli_dir_exists("cert")) { + cli_mkdir("cert", 0700); + cli_generate_certs(); + } } if (bopt->single_binary) {