diff --git a/src/modules/tlsa/Makefile b/src/modules/tlsa/Makefile new file mode 100644 index 00000000000..eb01df99aaa --- /dev/null +++ b/src/modules/tlsa/Makefile @@ -0,0 +1,57 @@ +# +# TLSA module makefile +# +# +# WARNING: do not run this directly, it should be run by the main Makefile + +include ../../Makefile.defs +auto_gen= +NAME=tlsa.so + +# set to yes when wanting to link with static libraries compiled from source +LIBSSL_STATIC_SRCLIB ?= no +# set to the path of the folder with static libraries compiled from source +LIBSSL_STATIC_SRCPATH ?= /usr/local/src/openssl + +ifeq ($(CROSS_COMPILE),) +SSL_BUILDER=$(shell \ + if pkg-config --exists libssl; then \ + echo 'pkg-config libssl'; \ + fi) +CRYPTO_BUILDER=$(shell \ + if pkg-config --exists libcrypto; then \ + echo 'pkg-config libcrypto'; \ + fi) +endif + +DEFS += -DKSR_LIBSSL_STATIC + +ifneq ($(SSL_BUILDER),) + +ifneq ($(LIBSSL_STATIC_SRCLIB),yes) + ## when static libs (*.a) from packages are compiled with -fPIC + DEFS += $(shell $(SSL_BUILDER) --cflags) + LIBS += $(shell $(SSL_BUILDER) --libs-only-L) +ifneq ($(CRYPTO_BUILDER),) + DEFS += $(shell $(CRYPTO_BUILDER) --cflags) + LIBS += $(shell $(CRYPTO_BUILDER) --libs-only-L) +endif # ifneq ($(CRYPTO_BUILDER),) + + LIBS += -l:libssl.a -l:libcrypto.a -l:libz.a -l:libdl.a + # TODO: explore use of LIBS += -Wl,-Bstatic $(shell $(SSL_BUILDER) --libs-only-l) + +else + ## when linking against static libs compiled from sources + DEFS += -I$(LIBSSL_STATIC_SRCPATH)/include + LIBS += $(LIBSSL_STATIC_SRCPATH)/libssl.a $(LIBSSL_STATIC_SRCPATH)/libcrypto.a +endif # ifneq ($(LIBSSL_STATIC_SRCLIB),yes) + +else # ifneq ($(SSL_BUILDER),) + + DEFS += -I$(LOCALBASE)/ssl/include + LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \ + -L$(LOCALBASE)/lib64 -L$(LOCALBASE)/ssl/lib64 \ + -l:libssl.a -l:libcrypto.a -l:libz.a -l:libdl.a +endif # ifneq ($(SSL_BUILDER),) + +include ../../Makefile.modules diff --git a/src/modules/tlsa/doc/Makefile b/src/modules/tlsa/doc/Makefile new file mode 100644 index 00000000000..4ab35f7b078 --- /dev/null +++ b/src/modules/tlsa/doc/Makefile @@ -0,0 +1,4 @@ +docs = tlsa.xml + +docbook_dir = ../../../../doc/docbook +include $(docbook_dir)/Makefile.module diff --git a/src/modules/tlsa/doc/tlsa.xml b/src/modules/tlsa/doc/tlsa.xml new file mode 100644 index 00000000000..75da4b765c2 --- /dev/null +++ b/src/modules/tlsa/doc/tlsa.xml @@ -0,0 +1,71 @@ + + + +%docentities; + +]> + + + + TLSA Module + + + Daniel-Constantin + Mierla + kamailio.org +
+ miconda@gmail.com +
+
+
+ + 2021 + kamailio.org + +
+ + + + Admin Guide +
+ Overview + + This is a pseudo module that builds TLS module compiled statically against + libssl and libcrypto (from OpenSSL project). + Its C code files simply include the files from TLS module, setting + a different module name. + + + It is a replacement for tls module, with the same modparams and functions. + Just replace ' loadmodule "tls.so" ' with ' loadmodule "tlsa.so" ' + and ' modparam("tls", ...) ' with ' modparam("tlsa", ...) '. See the + docs of TLS module for all the details related to its parameters, + functions, rpc commands, variables, ... + + + The benefit of this module is having the libssl and libcrypto embedded + in the module object file, thus not sharing the SSL/TLS context with + any other modules that may link indirectly to libssl (e.g., like + http_client that links against libcurl, which uses libssl). In this + way, the initialization of SSL context (e.g., setting shared memory + management functions) by tlsa module does not impact the other + modules. + + + Another benefit could be the ability to link a specific libssl + version (e.g., using source build), not being bound to the version + shipped with the operating system. + + + The drawback is that updates to the libssl done via operating + system upgrades are not reflected in the tlsa module. It has to + be recompiled every time a new libssl version is installed and it + is wanted to be used by tlsa module. + +
+
+
+ diff --git a/src/modules/tlsa/fixed_c_zlib.h b/src/modules/tlsa/fixed_c_zlib.h new file mode 100644 index 00000000000..f228b5fc175 --- /dev/null +++ b/src/modules/tlsa/fixed_c_zlib.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/fixed_c_zlib.h" + diff --git a/src/modules/tlsa/sbufq.h b/src/modules/tlsa/sbufq.h new file mode 100644 index 00000000000..4f652517d45 --- /dev/null +++ b/src/modules/tlsa/sbufq.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/sbufq.h" + diff --git a/src/modules/tlsa/tls_bio.c b/src/modules/tlsa/tls_bio.c new file mode 100644 index 00000000000..33b4f218fa5 --- /dev/null +++ b/src/modules/tlsa/tls_bio.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_bio.c" + diff --git a/src/modules/tlsa/tls_bio.h b/src/modules/tlsa/tls_bio.h new file mode 100644 index 00000000000..8b7ee3fa391 --- /dev/null +++ b/src/modules/tlsa/tls_bio.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_bio.h" + diff --git a/src/modules/tlsa/tls_cfg.c b/src/modules/tlsa/tls_cfg.c new file mode 100644 index 00000000000..d47b1540a37 --- /dev/null +++ b/src/modules/tlsa/tls_cfg.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_cfg.c" + diff --git a/src/modules/tlsa/tls_cfg.h b/src/modules/tlsa/tls_cfg.h new file mode 100644 index 00000000000..b3331808862 --- /dev/null +++ b/src/modules/tlsa/tls_cfg.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_cfg.h" + diff --git a/src/modules/tlsa/tls_config.c b/src/modules/tlsa/tls_config.c new file mode 100644 index 00000000000..ad9f5d6fe6c --- /dev/null +++ b/src/modules/tlsa/tls_config.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_config.c" + diff --git a/src/modules/tlsa/tls_config.h b/src/modules/tlsa/tls_config.h new file mode 100644 index 00000000000..10c17047d7f --- /dev/null +++ b/src/modules/tlsa/tls_config.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_config.h" + diff --git a/src/modules/tlsa/tls_ct_q.h b/src/modules/tlsa/tls_ct_q.h new file mode 100644 index 00000000000..444e5d852d6 --- /dev/null +++ b/src/modules/tlsa/tls_ct_q.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_ct_q.h" + diff --git a/src/modules/tlsa/tls_ct_wrq.c b/src/modules/tlsa/tls_ct_wrq.c new file mode 100644 index 00000000000..68f898ee121 --- /dev/null +++ b/src/modules/tlsa/tls_ct_wrq.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_ct_wrq.c" + diff --git a/src/modules/tlsa/tls_ct_wrq.h b/src/modules/tlsa/tls_ct_wrq.h new file mode 100644 index 00000000000..e5090db0e1f --- /dev/null +++ b/src/modules/tlsa/tls_ct_wrq.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_ct_wrq.h" + diff --git a/src/modules/tlsa/tls_domain.c b/src/modules/tlsa/tls_domain.c new file mode 100644 index 00000000000..7197d8ef2cc --- /dev/null +++ b/src/modules/tlsa/tls_domain.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_domain.c" + diff --git a/src/modules/tlsa/tls_domain.h b/src/modules/tlsa/tls_domain.h new file mode 100644 index 00000000000..b9795fa3ddb --- /dev/null +++ b/src/modules/tlsa/tls_domain.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_domain.h" + diff --git a/src/modules/tlsa/tls_dump_vf.c b/src/modules/tlsa/tls_dump_vf.c new file mode 100644 index 00000000000..caa8752e487 --- /dev/null +++ b/src/modules/tlsa/tls_dump_vf.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_dump_vf.c" + diff --git a/src/modules/tlsa/tls_dump_vf.h b/src/modules/tlsa/tls_dump_vf.h new file mode 100644 index 00000000000..e76bd8620ed --- /dev/null +++ b/src/modules/tlsa/tls_dump_vf.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_dump_vf.h" + diff --git a/src/modules/tlsa/tls_init.c b/src/modules/tlsa/tls_init.c new file mode 100644 index 00000000000..e73df7ee3e5 --- /dev/null +++ b/src/modules/tlsa/tls_init.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_init.c" + diff --git a/src/modules/tlsa/tls_init.h b/src/modules/tlsa/tls_init.h new file mode 100644 index 00000000000..175437d2780 --- /dev/null +++ b/src/modules/tlsa/tls_init.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_init.h" + diff --git a/src/modules/tlsa/tls_locking.c b/src/modules/tlsa/tls_locking.c new file mode 100644 index 00000000000..201a7c64c71 --- /dev/null +++ b/src/modules/tlsa/tls_locking.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_locking.c" + diff --git a/src/modules/tlsa/tls_locking.h b/src/modules/tlsa/tls_locking.h new file mode 100644 index 00000000000..b2f6d9fb8a2 --- /dev/null +++ b/src/modules/tlsa/tls_locking.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_locking.h" + diff --git a/src/modules/tlsa/tls_map.c b/src/modules/tlsa/tls_map.c new file mode 100644 index 00000000000..ab58e113f29 --- /dev/null +++ b/src/modules/tlsa/tls_map.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_map.c" + diff --git a/src/modules/tlsa/tls_map.h b/src/modules/tlsa/tls_map.h new file mode 100644 index 00000000000..d6ca76f61b2 --- /dev/null +++ b/src/modules/tlsa/tls_map.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_map.h" + diff --git a/src/modules/tlsa/tls_mod.h b/src/modules/tlsa/tls_mod.h new file mode 100644 index 00000000000..7d18b404e56 --- /dev/null +++ b/src/modules/tlsa/tls_mod.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_mod.h" + diff --git a/src/modules/tlsa/tls_rand.c b/src/modules/tlsa/tls_rand.c new file mode 100644 index 00000000000..ba7e73c3534 --- /dev/null +++ b/src/modules/tlsa/tls_rand.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_rand.c" + diff --git a/src/modules/tlsa/tls_rand.h b/src/modules/tlsa/tls_rand.h new file mode 100644 index 00000000000..7bc3f521a68 --- /dev/null +++ b/src/modules/tlsa/tls_rand.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_rand.h" + diff --git a/src/modules/tlsa/tls_rpc.c b/src/modules/tlsa/tls_rpc.c new file mode 100644 index 00000000000..c1d9e850cbb --- /dev/null +++ b/src/modules/tlsa/tls_rpc.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_rpc.c" + diff --git a/src/modules/tlsa/tls_rpc.h b/src/modules/tlsa/tls_rpc.h new file mode 100644 index 00000000000..155469af67a --- /dev/null +++ b/src/modules/tlsa/tls_rpc.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_rpc.h" + diff --git a/src/modules/tlsa/tls_select.c b/src/modules/tlsa/tls_select.c new file mode 100644 index 00000000000..0ce6dfad67e --- /dev/null +++ b/src/modules/tlsa/tls_select.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_select.c" + diff --git a/src/modules/tlsa/tls_select.h b/src/modules/tlsa/tls_select.h new file mode 100644 index 00000000000..6fce29bff50 --- /dev/null +++ b/src/modules/tlsa/tls_select.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_select.h" + diff --git a/src/modules/tlsa/tls_server.c b/src/modules/tlsa/tls_server.c new file mode 100644 index 00000000000..8bcb9faaba0 --- /dev/null +++ b/src/modules/tlsa/tls_server.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_server.c" + diff --git a/src/modules/tlsa/tls_server.h b/src/modules/tlsa/tls_server.h new file mode 100644 index 00000000000..9f2d31d5c1a --- /dev/null +++ b/src/modules/tlsa/tls_server.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_server.h" + diff --git a/src/modules/tlsa/tls_util.c b/src/modules/tlsa/tls_util.c new file mode 100644 index 00000000000..02f13a71468 --- /dev/null +++ b/src/modules/tlsa/tls_util.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_util.c" + diff --git a/src/modules/tlsa/tls_util.h b/src/modules/tlsa/tls_util.h new file mode 100644 index 00000000000..46cb2e0c18e --- /dev/null +++ b/src/modules/tlsa/tls_util.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_util.h" + diff --git a/src/modules/tlsa/tls_verify.c b/src/modules/tlsa/tls_verify.c new file mode 100644 index 00000000000..f7459a27fcb --- /dev/null +++ b/src/modules/tlsa/tls_verify.c @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_verify.c" + diff --git a/src/modules/tlsa/tls_verify.h b/src/modules/tlsa/tls_verify.h new file mode 100644 index 00000000000..570d690d236 --- /dev/null +++ b/src/modules/tlsa/tls_verify.h @@ -0,0 +1,28 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#include "../tls/tls_verify.h" + diff --git a/src/modules/tlsa/tlsa_mod.c b/src/modules/tlsa/tlsa_mod.c new file mode 100644 index 00000000000..ef1ae7dc1b3 --- /dev/null +++ b/src/modules/tlsa/tlsa_mod.c @@ -0,0 +1,32 @@ +/** + * Copyright (C) 2021 Daniel-Constantin Mierla (asipto.com) + * + * This file is part of Kamailio, a free SIP server. + * + * This file is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version + * + * + * This file is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +/** + * THIS FILE IS GENERATED - DO NOT MODIFY IT + */ + +#ifndef MOD_NAME +#define MOD_NAME "tlsa" +#endif + +#include "../tls/tls_mod.c" +