mirror of https://github.com/wolfSSL/wolfssl.git
Fixes for Zephyr OS
time is not available. Must include clock module kdf.c missing from file listpull/4514/head
parent
7baffd9cf1
commit
623a84ed7b
|
@ -1358,15 +1358,10 @@ WOLFSSL_API int wolfCrypt_Cleanup(void);
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef signed int time_t;
|
|
||||||
|
|
||||||
time_t z_time(time_t *timer);
|
time_t z_time(time_t *timer);
|
||||||
|
|
||||||
#define XTIME(tl) z_time((tl))
|
#define XTIME(tl) z_time((tl))
|
||||||
#define XGMTIME(c, t) gmtime((c))
|
#define XGMTIME(c, t) gmtime((c))
|
||||||
#define WOLFSSL_GMTIME
|
|
||||||
|
|
||||||
#define USE_WOLF_TM
|
|
||||||
|
|
||||||
#elif defined(WOLFSSL_TELIT_M2MB)
|
#elif defined(WOLFSSL_TELIT_M2MB)
|
||||||
typedef long time_t;
|
typedef long time_t;
|
||||||
|
|
|
@ -58,6 +58,7 @@ if(CONFIG_WOLFSSL)
|
||||||
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/hmac.c)
|
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/hmac.c)
|
||||||
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/idea.c)
|
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/idea.c)
|
||||||
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/integer.c)
|
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/integer.c)
|
||||||
|
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/kdf.c)
|
||||||
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/logging.c)
|
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/logging.c)
|
||||||
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/md2.c)
|
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/md2.c)
|
||||||
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/md4.c)
|
zephyr_library_sources(${ZEPHYR_CURRENT_MODULE_DIR}/wolfcrypt/src/md4.c)
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
CONFIG_MAIN_STACK_SIZE=32768
|
CONFIG_MAIN_STACK_SIZE=32768
|
||||||
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=16384
|
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=16384
|
||||||
|
|
||||||
|
# Clock for time()
|
||||||
|
CONFIG_POSIX_CLOCK=y
|
||||||
|
|
||||||
# TLS configuration
|
# TLS configuration
|
||||||
CONFIG_WOLFSSL=y
|
CONFIG_WOLFSSL=y
|
||||||
CONFIG_WOLFSSL_BUILTIN=y
|
CONFIG_WOLFSSL_BUILTIN=y
|
||||||
|
|
|
@ -7,6 +7,9 @@ CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
|
||||||
# General config
|
# General config
|
||||||
CONFIG_NEWLIB_LIBC=y
|
CONFIG_NEWLIB_LIBC=y
|
||||||
|
|
||||||
|
# Clock for time()
|
||||||
|
CONFIG_POSIX_CLOCK=y
|
||||||
|
|
||||||
# Networking config
|
# Networking config
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
CONFIG_NET_IPV4=y
|
CONFIG_NET_IPV4=y
|
||||||
|
|
|
@ -4,6 +4,9 @@ CONFIG_ENTROPY_GENERATOR=y
|
||||||
CONFIG_INIT_STACKS=y
|
CONFIG_INIT_STACKS=y
|
||||||
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
|
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=8192
|
||||||
|
|
||||||
|
# Clock for time()
|
||||||
|
CONFIG_POSIX_CLOCK=y
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
CONFIG_NETWORKING=y
|
CONFIG_NETWORKING=y
|
||||||
CONFIG_NET_TEST=y
|
CONFIG_NET_TEST=y
|
||||||
|
|
|
@ -129,11 +129,6 @@ extern "C" {
|
||||||
#undef NO_DES3
|
#undef NO_DES3
|
||||||
#define NO_DES3
|
#define NO_DES3
|
||||||
|
|
||||||
#if 1
|
|
||||||
#undef NO_ASN_TIME
|
|
||||||
#define NO_ASN_TIME
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef WOLFSSL_STATIC_MEMORY
|
#undef WOLFSSL_STATIC_MEMORY
|
||||||
#define WOLFSSL_STATIC_MEMORY
|
#define WOLFSSL_STATIC_MEMORY
|
||||||
|
|
||||||
|
|
|
@ -134,11 +134,6 @@ extern "C" {
|
||||||
#undef NO_DES3
|
#undef NO_DES3
|
||||||
#define NO_DES3
|
#define NO_DES3
|
||||||
|
|
||||||
#if 1
|
|
||||||
#undef NO_ASN_TIME
|
|
||||||
#define NO_ASN_TIME
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#undef WOLFSSL_STATIC_MEMORY
|
#undef WOLFSSL_STATIC_MEMORY
|
||||||
#define WOLFSSL_STATIC_MEMORY
|
#define WOLFSSL_STATIC_MEMORY
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue