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 f87624a459342de33ff58619901da96749fad057
parent 7db3e4d946f3c1fb21d50b8c423273c6b48dc9b6
Author: Joris Vink <joris@coders.se>
Date:   Mon,  1 Oct 2018 10:36:33 +0200

Add missing KORE_NO_TLS guards.

Fixes NOTLS=1 builds on openssl 1.1.1

Diffstat:
src/domain.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/domain.c b/src/domain.c @@ -125,6 +125,7 @@ kore_domain_init(void) { TAILQ_INIT(&domains); +#if !defined(KORE_NO_TLS) #if !defined(LIBRESSL_VERSION_TEXT) && OPENSSL_VERSION_NUMBER >= 0x10100000L if (keymgr_rsa_meth == NULL) { if ((keymgr_rsa_meth = RSA_meth_new("kore RSA keymgr method", @@ -143,6 +144,7 @@ kore_domain_init(void) EC_KEY_METHOD_set_sign(keymgr_ec_meth, NULL, NULL, keymgr_ecdsa_sign); #endif +#endif } void @@ -155,6 +157,7 @@ kore_domain_cleanup(void) kore_domain_free(dom); } +#if !defined(KORE_NO_TLS) #if !defined(LIBRESSL_VERSION_TEXT) && OPENSSL_VERSION_NUMBER >= 0x10100000L if (keymgr_rsa_meth != NULL) { RSA_meth_free(keymgr_rsa_meth); @@ -166,6 +169,7 @@ kore_domain_cleanup(void) keymgr_ec_meth = NULL; } #endif +#endif } int