Skip to content

Commit

Permalink
Add sanity check for configuration method
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Dec 6, 2024
1 parent f764dbe commit 816f6a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wolfssl/wolfcrypt/settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
*
* ./configure CFLAGS="-DFEATURE_FLAG_TO_DEFINE -UFEATURE_FLAG_TO_CLEAR [...]"
*
* To build using a custom configuration method, define WOLFSSL_CUSTOM_CONFIG
*
* For more information see:
*
* https://www.wolfssl.com/how-do-i-manage-the-build-configuration-of-wolfssl/
Expand Down Expand Up @@ -326,6 +328,12 @@
/* NOTE: cyassl_nucleus_defs.h is akin to user_settings.h */
#include "nucleus.h"
#include "os/networking/ssl/lite/cyassl_nucleus_defs.h"
#elif !defined(WOLFSSL_USER_SETTINGS) && !defined(HAVE_CONFIG_H) && \
!defined(WOLFSSL_OPTIONS_H) && !defined(WOLFSSL_CUSTOM_CONFIG)
/* This error indicates that the settings header may not be included before
* other wolfSSL headers. If you are using a custom configuration method,
* define WOLFSSL_CUSTOM_CONFIG to override this error. */
#error "No configuration for wolfSSL detected, check header order"
#endif

#include <wolfssl/wolfcrypt/visibility.h>
Expand Down

0 comments on commit 816f6a1

Please sign in to comment.