Skip to content

Commit 18ed67a

Browse files
authored
Merge pull request #8640 from douzzer/20250404-WOLFSSL_SOURCES_H
20250404-WOLFSSL_SOURCES_H
2 parents 0e27b3e + 3465dde commit 18ed67a

228 files changed

Lines changed: 367 additions & 1409 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

linuxkm/linuxkm_wc_port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@
855855
/* remove this multifariously conflicting macro, picked up from
856856
* Linux arch/<arch>/include/asm/current.h.
857857
*/
858-
#ifndef WOLFSSL_NEED_LINUX_CURRENT
858+
#ifndef WOLFSSL_LINUXKM_NEED_LINUX_CURRENT
859859
#undef current
860860
#endif
861861

linuxkm/module_exports.c.template

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,12 @@
2020
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
2121
*/
2222

23-
#ifdef HAVE_CONFIG_H
24-
#include <config.h>
25-
#endif
26-
27-
#include <wolfssl/wolfcrypt/settings.h>
23+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
2824

2925
#ifdef HAVE_FIPS
3026
#define FIPS_NO_WRAPPERS
3127
#endif
3228

33-
#include <wolfssl/wolfcrypt/error-crypt.h>
3429
#ifndef WOLFCRYPT_ONLY
3530
#include <wolfssl/ssl.h>
3631
#include <wolfssl/internal.h>

linuxkm/module_hooks.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,10 @@
2929

3030
#define FIPS_NO_WRAPPERS
3131

32-
#define WOLFSSL_NEED_LINUX_CURRENT
32+
#define WOLFSSL_LINUXKM_NEED_LINUX_CURRENT
3333

34-
#ifdef HAVE_CONFIG_H
35-
#include <config.h>
36-
#endif
34+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
3735

38-
#include <wolfssl/wolfcrypt/settings.h>
39-
#include <wolfssl/wolfcrypt/error-crypt.h>
4036
#ifdef WOLFCRYPT_ONLY
4137
#include <wolfssl/version.h>
4238
#else

linuxkm/pie_first.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
#error pie_first.c must be compiled -fPIE.
2424
#endif
2525

26-
#ifdef HAVE_CONFIG_H
27-
#include <config.h>
28-
#endif
26+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
2927

30-
#include <wolfssl/wolfcrypt/settings.h>
31-
#include <wolfssl/wolfcrypt/error-crypt.h>
3228
#include <wolfssl/ssl.h>
3329

3430
int wolfCrypt_PIE_first_function(void);

linuxkm/pie_last.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
#error pie_last.c must be compiled -fPIE.
2424
#endif
2525

26-
#ifdef HAVE_CONFIG_H
27-
#include <config.h>
28-
#endif
26+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
2927

30-
#include <wolfssl/wolfcrypt/settings.h>
31-
#include <wolfssl/wolfcrypt/error-crypt.h>
3228
#include <wolfssl/ssl.h>
3329

3430
int wolfCrypt_PIE_last_function(void);

linuxkm/pie_redirect_table.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@
2323
#error pie_redirect_table.c must be compiled -fPIE.
2424
#endif
2525

26-
#ifdef HAVE_CONFIG_H
27-
#include <config.h>
28-
#endif
26+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
2927

30-
#include <wolfssl/wolfcrypt/settings.h>
31-
#include <wolfssl/wolfcrypt/error-crypt.h>
3228
#include <wolfssl/ssl.h>
3329

3430
/* compiling -fPIE results in references to the GOT or equivalent thereof, which remain after linking

src/bio.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
2020
*/
2121

22-
#ifdef HAVE_CONFIG_H
23-
#include <config.h>
24-
#endif
22+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
2523

26-
#include <wolfssl/wolfcrypt/settings.h>
2724
#if defined(OPENSSL_EXTRA) && !defined(_WIN32) && !defined(_GNU_SOURCE)
2825
/* turn on GNU extensions for XVASPRINTF with wolfSSL_BIO_printf */
2926
#define _GNU_SOURCE 1

src/conf.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
2020
*/
2121

22-
23-
#ifdef HAVE_CONFIG_H
24-
#include <config.h>
25-
#endif
26-
27-
#include <wolfssl/wolfcrypt/settings.h>
22+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
2823

2924
#if !defined(WOLFSSL_CONF_INCLUDED)
3025
#ifndef WOLFSSL_IGNORE_FILE_WARN

src/crl.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
2020
*/
2121

22+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
2223

2324
/*
2425
CRL Options:
@@ -32,11 +33,6 @@ CRL Options:
3233
* Return any errors encountered during loading CRL
3334
* from a directory.
3435
*/
35-
#ifdef HAVE_CONFIG_H
36-
#include <config.h>
37-
#endif
38-
39-
#include <wolfssl/wolfcrypt/settings.h>
4036

4137
#ifndef WOLFCRYPT_ONLY
4238
#ifdef HAVE_CRL

src/dtls.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
2020
*/
2121

22+
#include <wolfssl/wolfcrypt/libwolfssl_sources.h>
23+
2224
/*
2325
* WOLFSSL_DTLS_NO_HVR_ON_RESUME
2426
* WOLFSSL_DTLS13_NO_HRR_ON_RESUME
@@ -46,12 +48,6 @@
4648
* to explicitly enable this during runtime.
4749
*/
4850

49-
#ifdef HAVE_CONFIG_H
50-
#include <config.h>
51-
#endif
52-
53-
#include <wolfssl/wolfcrypt/settings.h>
54-
5551
#ifndef WOLFCRYPT_ONLY
5652

5753
#include <wolfssl/error-ssl.h>

0 commit comments

Comments
 (0)