Browse code

tls: info log when libssl is linked static

(cherry picked from commit 365e7e46dfb4f605bafe43b57e37e1ff68077567)

Daniel-Constantin Mierla authored on 24/06/2021 12:24:06
Showing 2 changed files
... ...
@@ -39,6 +39,8 @@ endif # ifneq ($(CRYPTO_BUILDER),)
39 39
 
40 40
 else # $(LIBSSL_STATIC),yes)
41 41
 
42
+	DEFS += -DKSR_LIBSSL_STATIC
43
+
42 44
 ifneq ($(LIBSSL_STATIC_SRCLIB),yes)
43 45
 	## when static libs (*.a) from packages are compiled with -fPIC
44 46
 	DEFS += $(shell $(SSL_BUILDER) --cflags)
... ...
@@ -589,6 +589,10 @@ int tls_pre_init(void)
589 589
 	void (*ff)(void *, const char *, int) = NULL;
590 590
 #endif
591 591
 
592
+#ifdef KSR_LIBSSL_STATIC
593
+	LM_INFO("libssl linked mode: static\n");
594
+#endif
595
+
592 596
 	/*
593 597
 	 * this has to be called before any function calling CRYPTO_malloc,
594 598
 	 * CRYPTO_malloc will set allow_customize in openssl to 0