Hi wolfGang,
There are many examples of creating new custom defines in the file
<wolfssl-root>/wolfssl/wolfcrypt/settings.h
When creating a new custom define section we place a commented out option at the top of the settings header file and note to uncomment that single define if you wish to use it.
Then we create a subsection for the define that contains all the various global configure options that pertain to operating environment.
To control features it is customary to define "WOLFSSL_USER_SETTINGS" at the project level. Then add a file named "user_settings.h" to your include path and use this header for enabling/disabling specific features. To see examples of this please have a look at the user_settings.h header files used in several of our examples:
<wolfssl-root>/IDE/IAR-EWARM/embOS/custom_port/custom_port_user_settings/user_settings.h
<wolfssl-root>/IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_SAMV71_XULT_user_settings/user_settings.h
<wolfssl-root>/IDE/IAR-EWARM/Projects/user_settings.h
<wolfssl-root>/IDE/iOS/user_settings.h
<wolfssl-root>/IDE/LPCXPRESSO/lib_wolfssl/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Conf/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/SimpleClient/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/SimpleServer/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/wolfSSL-Full/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/MDK5-ARM/Projects/wolfSSL-Lib/RTE/wolfSSL/user_settings.h
<wolfssl-root>/IDE/ROWLEY-CROSSWORKS-ARM/user_settings.h
<wolfssl-root>/IDE/WIN/user_settings.h
Warm Regards,
Kaleb