mirror of https://github.com/wolfSSL/wolfssl.git
updated zephyr includes
parent
a8ca958855
commit
9b1aed0c82
|
@ -3561,11 +3561,11 @@ int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||||
|
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
|
|
||||||
#include <random/rand32.h>
|
#include <zephyr/random/rand32.h>
|
||||||
#ifndef _POSIX_C_SOURCE
|
#ifndef _POSIX_C_SOURCE
|
||||||
#include <posix/time.h>
|
#include <zephyr/posix/time.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
int wc_GenerateSeed(OS_Seed* os, byte* output, word32 sz)
|
||||||
|
|
|
@ -194,7 +194,7 @@
|
||||||
#endif
|
#endif
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
#ifndef SINGLE_THREADED
|
#ifndef SINGLE_THREADED
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#endif
|
#endif
|
||||||
#elif defined(WOLFSSL_TELIT_M2MB)
|
#elif defined(WOLFSSL_TELIT_M2MB)
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
|
|
|
@ -140,7 +140,7 @@
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <net/socket.h>
|
#include <zephyr/net/socket.h>
|
||||||
#define SOCKET_T int
|
#define SOCKET_T int
|
||||||
#define SOL_SOCKET 1
|
#define SOL_SOCKET 1
|
||||||
#define WOLFSSL_USE_GETADDRINFO
|
#define WOLFSSL_USE_GETADDRINFO
|
||||||
|
|
|
@ -1762,9 +1762,9 @@ extern void uITRON4_free(void *p) ;
|
||||||
#endif /*(WOLFSSL_APACHE_MYNEWT)*/
|
#endif /*(WOLFSSL_APACHE_MYNEWT)*/
|
||||||
|
|
||||||
#ifdef WOLFSSL_ZEPHYR
|
#ifdef WOLFSSL_ZEPHYR
|
||||||
#include <zephyr.h>
|
#include <zephyr/kernel.h>
|
||||||
#include <sys/printk.h>
|
#include <zephyr/sys/printk.h>
|
||||||
#include <sys/util.h>
|
#include <zephyr/sys/util.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define WOLFSSL_DH_CONST
|
#define WOLFSSL_DH_CONST
|
||||||
|
|
|
@ -139,7 +139,7 @@
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
#ifndef SINGLE_THREADED
|
#ifndef SINGLE_THREADED
|
||||||
#include <kernel.h>
|
#include <zephyr/kernel.h>
|
||||||
#endif
|
#endif
|
||||||
#elif defined(WOLFSSL_TELIT_M2MB)
|
#elif defined(WOLFSSL_TELIT_M2MB)
|
||||||
|
|
||||||
|
@ -508,7 +508,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
||||||
#define XFGETS(b,s,f) -2 /* Not ported yet */
|
#define XFGETS(b,s,f) -2 /* Not ported yet */
|
||||||
|
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
#include <fs/fs.h>
|
#include <zephyr/fs/fs.h>
|
||||||
|
|
||||||
#define XFILE struct fs_file_t*
|
#define XFILE struct fs_file_t*
|
||||||
#define STAT struct fs_dirent
|
#define STAT struct fs_dirent
|
||||||
|
@ -913,7 +913,7 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
||||||
|
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
#ifndef _POSIX_C_SOURCE
|
#ifndef _POSIX_C_SOURCE
|
||||||
#include <posix/time.h>
|
#include <zephyr/posix/time.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -127,7 +127,7 @@
|
||||||
#include <lwip-socket.h>
|
#include <lwip-socket.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
#include <net/socket.h>
|
#include <zephyr/net/socket.h>
|
||||||
#elif defined(MICROCHIP_PIC32)
|
#elif defined(MICROCHIP_PIC32)
|
||||||
#include <sys/errno.h>
|
#include <sys/errno.h>
|
||||||
#elif defined(HAVE_NETX)
|
#elif defined(HAVE_NETX)
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
* Initialize the wolfSSL library.
|
* Initialize the wolfSSL library.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <init.h>
|
#include <zephyr/init.h>
|
||||||
|
|
||||||
#include "user_settings.h"
|
#include "user_settings.h"
|
||||||
#include "wolfssl/ssl.h"
|
#include "wolfssl/ssl.h"
|
||||||
|
|
Loading…
Reference in New Issue