Debian Codegraph @

src/modules/tlsa/README

raw
1 TLSA Module
2
3 Daniel-Constantin Mierla
4
5 kamailio.org
6
7 Copyright © 2021 kamailio.org
8 __________________________________________________________________
9
10 Table of Contents
11
12 1. Admin Guide
13
14 1. Overview
15
16 Chapter 1. Admin Guide
17
18 Table of Contents
19
20 1. Overview
21
22 1. Overview
23
24 This is a pseudo module that builds TLS module compiled statically
25 against libssl and libcrypto (from OpenSSL project). Its C code files
26 simply include the files from TLS module, setting a different module
27 name.
28
29 It is a replacement for tls module, with the same modparams and
30 functions. Just replace ' loadmodule "tls.so" ' with ' loadmodule
31 "tlsa.so" ' and ' modparam("tls", ...) ' with ' modparam("tlsa", ...)
32 '. See the docs of TLS module for all the details related to its
33 parameters, functions, rpc commands, variables, ...
34
35 The benefit of this module is having the libssl and libcrypto embedded
36 in the module object file, thus not sharing the SSL/TLS context with
37 any other modules that may link indirectly to libssl (e.g., like
38 http_client that links against libcurl, which uses libssl). In this
39 way, the initialization of SSL context (e.g., setting shared memory
40 management functions) by tlsa module does not impact the other modules.
41
42 Another benefit could be the ability to link a specific libssl version
43 (e.g., using source build), not being bound to the version shipped with
44 the operating system.
45
46 The drawback is that updates to the libssl done via operating system
47 upgrades are not reflected in the tlsa module. It has to be recompiled
48 every time a new libssl version is installed and it is wanted to be
49 used by tlsa module.
50
51 NOTE: the module is known to work to be compiled with GCC on Linux
52 (tested on Debian Stable 10.x). Other compilers (e.g., clang, icc) may
53 not support same static linking options. Also, some operating systems
54 may provide only dynamic libssl and libcrypto libraries via their
55 packages.
56
57 NOTE: edit the Makefile in the module folder and update it accordingly
58 to set the path to libssl and libcrypto libraries specific to own
59 system when not wanting to use "pkg-config" (e.g., when having these
60 libraries compiled from sources).