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 5b462f3ab60470f35986476cb7cef74559bfb325
parent 25578d94289f553d80009150b11a91895840d9ff
Author: Joris Vink <joris@coders.se>
Date:   Wed,  6 May 2015 10:18:54 +0200

Always attempt to create dh2048.pem if not present

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

diff --git a/src/cli.c b/src/cli.c @@ -368,6 +368,11 @@ cli_build(int argc, char **argv) } free(cpath); + (void)cli_vasprintf(&cpath, "%s/dh2048.pem", rootdir); + if (!cli_file_exists(cpath)) + cli_file_create("dh2048.pem", dh2048_data, strlen(dh2048_data)); + free(cpath); + if (requires_relink) { cli_spawn_proc(cli_link_library, NULL); printf("%s built succesfully!\n", appl); @@ -773,9 +778,6 @@ cli_generate_certs(void) RSA *kpair; char *fpath, issuer[64]; - /* Write out DH parameters. */ - cli_file_create("dh2048.pem", dh2048_data, strlen(dh2048_data)); - /* Create new certificate. */ if ((x509 = X509_new()) == NULL) cli_fatal("X509_new(): %s", ssl_errno_s);