mirror of https://github.com/wolfSSL/wolfssl.git
Small fixes to build wolfSSL without warnings
parent
62a4329f8e
commit
62db14e676
|
@ -6,7 +6,7 @@ if(CONFIG_WOLFSSL)
|
||||||
WOLFSSL_SETTINGS_FILE="${CONFIG_WOLFSSL_SETTINGS_FILE}"
|
WOLFSSL_SETTINGS_FILE="${CONFIG_WOLFSSL_SETTINGS_FILE}"
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(wolfSSL INTERFACE
|
zephyr_include_directories(
|
||||||
${ZEPHYR_CURRENT_MODULE_DIR}
|
${ZEPHYR_CURRENT_MODULE_DIR}
|
||||||
${ZEPHYR_CURRENT_MODULE_DIR}/wolfssl
|
${ZEPHYR_CURRENT_MODULE_DIR}/wolfssl
|
||||||
${ZEPHYR_CURRENT_MODULE_DIR}/zephyr
|
${ZEPHYR_CURRENT_MODULE_DIR}/zephyr
|
||||||
|
@ -116,7 +116,6 @@ if(CONFIG_WOLFSSL)
|
||||||
|
|
||||||
add_definitions(-DWOLFSSL_USER_SETTINGS)
|
add_definitions(-DWOLFSSL_USER_SETTINGS)
|
||||||
add_definitions(-DWOLFSSL_ZEPHYR)
|
add_definitions(-DWOLFSSL_ZEPHYR)
|
||||||
include_directories("${ZEPHYR_CURRENT_MODULE_DIR}/wolfssl")
|
|
||||||
else()
|
else()
|
||||||
assert(CONFIG_WOLFSSL_LIBRARY "wolfSSL was enabled, but neither BUILTIN or LIBRARY was selected.")
|
assert(CONFIG_WOLFSSL_LIBRARY "wolfSSL was enabled, but neither BUILTIN or LIBRARY was selected.")
|
||||||
|
|
||||||
|
|
|
@ -19,22 +19,4 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** @file
|
/* Not needed. Keeping file for backwards compatibility. */
|
||||||
* @brief wolfSSL initialization
|
|
||||||
*
|
|
||||||
* Initialize the wolfSSL library.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <zephyr/init.h>
|
|
||||||
|
|
||||||
#include "user_settings.h"
|
|
||||||
#include "wolfssl/ssl.h"
|
|
||||||
|
|
||||||
static int _wolfssl_init(const struct device *device)
|
|
||||||
{
|
|
||||||
ARG_UNUSED(device);
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
SYS_INIT(_wolfssl_init, POST_KERNEL, 0);
|
|
||||||
|
|
Loading…
Reference in New Issue