kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 48495feb43be8a172ec78a666698b6734e13e5dd
parent 5b462f3ab60470f35986476cb7cef74559bfb325
Author: Joris Vink <joris@coders.se>
Date:   Wed,  6 May 2015 10:21:54 +0200

No, I was wrong. The dh params were created in the right place.

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

diff --git a/src/cli.c b/src/cli.c @@ -368,11 +368,6 @@ 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); @@ -778,6 +773,9 @@ 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);