Skip to content

Commit

Permalink
Merge pull request wolfSSL#7860 from dgarske/have_config
Browse files Browse the repository at this point in the history
Add missing config.h on .c files
  • Loading branch information
douzzer authored Aug 12, 2024
2 parents 8694314 + 08622ba commit 7fac450
Show file tree
Hide file tree
Showing 19 changed files with 77 additions and 6 deletions.
4 changes: 4 additions & 0 deletions examples/async/async_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
/* TLS client demonstrating asynchronous cryptography features and optionally
* using the crypto or PK callbacks */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* std */
#include <stdlib.h>
#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/async/async_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
/* TLS server demonstrating asynchronous cryptography features and optionally
* using the crypto or PK callbacks */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* std */
#include <stdlib.h>
#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/async/async_tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
Expand Down
3 changes: 3 additions & 0 deletions examples/sctp/sctp-client-dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* wolfssl */
#ifndef WOLFSSL_USER_SETTINGS
Expand Down
4 changes: 4 additions & 0 deletions examples/sctp/sctp-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
Expand Down
4 changes: 4 additions & 0 deletions examples/sctp/sctp-server-dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* wolfssl */
#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/sctp/sctp-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
Expand Down
4 changes: 3 additions & 1 deletion mcapi/mcapi_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

/* Tests Microchip CRYPTO API layer */


#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* mc api header */
#include <wolfssl/wolfcrypt/settings.h>
Expand Down
4 changes: 4 additions & 0 deletions wolfcrypt/src/port/Renesas/renesas_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolfssl/wolfcrypt/settings.h>

#if defined(WOLFSSL_RENESAS_FSPSM_TLS) || \
Expand Down
6 changes: 5 additions & 1 deletion wolfcrypt/src/port/Renesas/renesas_fspsm_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
#include <wolfssl/wolfcrypt/types.h>

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolfssl/wolfcrypt/types.h>

#if defined(WOLFSSL_RENESAS_RSIP) || \
defined(WOLFSSL_RENESAS_SCEPROTECT)
Expand Down
5 changes: 5 additions & 0 deletions wolfcrypt/src/port/Renesas/renesas_tsip_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolfssl/wolfcrypt/settings.h>

#if defined(WOLFSSL_RENESAS_TSIP)
Expand Down
4 changes: 4 additions & 0 deletions wolfcrypt/src/port/caam/caam_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#if (defined(__INTEGRITY) || defined(INTEGRITY)) || \
(defined(__QNX__) || defined(__QNXNTO__))

Expand Down
4 changes: 4 additions & 0 deletions wolfcrypt/src/port/caam/caam_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#if (defined(__INTEGRITY) || defined(INTEGRITY)) || \
(defined(__QNX__) || defined(__QNXNTO__))

Expand Down
12 changes: 9 additions & 3 deletions wolfcrypt/src/port/mynewt/mynewt_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#if defined(WOLFSSL_APACHE_MYNEWT)
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifdef WOLFSSL_APACHE_MYNEWT

#ifndef NO_FILESYSTEM

#include "fs/fs.h"
#define FILE struct fs_file

Expand Down Expand Up @@ -142,5 +148,5 @@ int mynewt_fclose(FILE *stream)
return 0;
}

#endif /* NO_FILESYSTEM*/
#endif /* if defined(WOLFSSL_APACHE_MYNEWT) */
#endif /* !NO_FILESYSTEM */
#endif /* WOLFSSL_APACHE_MYNEWT */
4 changes: 4 additions & 0 deletions wolfcrypt/src/port/st/stsafe.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolfssl/wolfcrypt/types.h>
#include <wolfssl/wolfcrypt/port/st/stsafe.h>
#include <wolfssl/wolfcrypt/logging.h>
Expand Down
4 changes: 4 additions & 0 deletions wolfcrypt/src/wc_kyber_poly.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
* some platforms and is smaller in code size.
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolfssl/wolfcrypt/wc_kyber.h>
#include <wolfssl/wolfcrypt/cpuid.h>
#include <wolfssl/wolfcrypt/error-crypt.h>
Expand Down
4 changes: 4 additions & 0 deletions wolfcrypt/src/wc_lms_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
* Enable when memory is limited.
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolfssl/wolfcrypt/wc_lms.h>
#include <wolfssl/wolfcrypt/error-crypt.h>

Expand Down
1 change: 0 additions & 1 deletion wolfssl/wolfcrypt/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,6 @@
#define NO_DEV_RANDOM
#define NO_FILESYSTEM
#define TFM_TIMING_RESISTANT
#define NO_BIG_INT
#endif

#ifdef WOLFSSL_MICROCHIP_PIC32MZ
Expand Down
4 changes: 4 additions & 0 deletions wrapper/Ada/ada_binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* wolfSSL */
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/ssl.h>
Expand Down

0 comments on commit 7fac450

Please sign in to comment.