mirror of https://github.com/wolfSSL/wolfssl.git
PlayStation compatibility
parent
a77c6d1fa0
commit
3c6651e1e2
|
@ -130,9 +130,15 @@ if(HAVE___UINT128_T)
|
||||||
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE___UINT128_T")
|
list(APPEND WOLFSSL_DEFINITIONS "-DHAVE___UINT128_T")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(TestBigEndian)
|
if(CMAKE_VERSION VERSION_LESS "3.20")
|
||||||
|
# TestBigEndian was deprecated in 3.20
|
||||||
test_big_endian(WORDS_BIGENDIAN)
|
include(TestBigEndian)
|
||||||
|
test_big_endian(IS_BIG_ENDIAN)
|
||||||
|
set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
|
||||||
|
if(IS_BIG_ENDIAN)
|
||||||
|
set(CMAKE_C_BYTE_ORDER "BIG_ENDIAN")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# Thread local storage
|
# Thread local storage
|
||||||
include(CheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
|
@ -576,7 +582,7 @@ if(WOLFSSL_LEAN_PSK OR (WOLFSSL_LEAN_TLS AND NOT WOLFSSL_TLS13))
|
||||||
override_cache(WOLFSSL_AESGCM "no")
|
override_cache(WOLFSSL_AESGCM "no")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WOLFSSL_AESGCM AND NOT WORDS_BIGENDIAN)
|
if(WOLFSSL_AESGCM AND CMAKE_C_BYTE_ORDER STREQUAL "LITTLE_ENDIAN")
|
||||||
override_cache(WOLFSSL_AESGCM "4bit")
|
override_cache(WOLFSSL_AESGCM "4bit")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -2081,7 +2087,7 @@ endif()
|
||||||
# Suppress some warnings about separate compilation, inlining
|
# Suppress some warnings about separate compilation, inlining
|
||||||
add_definitions("-DWOLFSSL_IGNORE_FILE_WARN")
|
add_definitions("-DWOLFSSL_IGNORE_FILE_WARN")
|
||||||
# Generate user options header
|
# Generate user options header
|
||||||
message("Generating user options header...")
|
message(STATUS "Generating user options header...")
|
||||||
if (${CMAKE_DISABLE_SOURCE_CHANGES})
|
if (${CMAKE_DISABLE_SOURCE_CHANGES})
|
||||||
set(WOLFSSL_BUILD_OUT_OF_TREE_DEFAULT "${CMAKE_DISABLE_SOURCE_CHANGES}")
|
set(WOLFSSL_BUILD_OUT_OF_TREE_DEFAULT "${CMAKE_DISABLE_SOURCE_CHANGES}")
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||||
#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@
|
#cmakedefine HAVE_ARPA_INET_H @HAVE_ARPA_INET_H@
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
||||||
|
#cmakedefine HAVE_SYS_IOCTL_H @HAVE_SYS_IOCTL_H@
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <netdb.h> header file. */
|
||||||
|
#cmakedefine HAVE_NETDB_H @HAVE_NETDB_H@
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||||
#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@
|
#cmakedefine HAVE_SYS_SOCKET_H @HAVE_SYS_SOCKET_H@
|
||||||
|
|
||||||
|
|
|
@ -96,13 +96,8 @@ WOLFSSL_API int wolfSSL_OPENSSL_init_crypto(word64 opts, const OPENSSL_INIT_SETT
|
||||||
#define SSLeay_version wolfSSLeay_version
|
#define SSLeay_version wolfSSLeay_version
|
||||||
#define SSLeay wolfSSLeay
|
#define SSLeay wolfSSLeay
|
||||||
#define OpenSSL_version_num wolfSSL_OpenSSL_version_num
|
#define OpenSSL_version_num wolfSSL_OpenSSL_version_num
|
||||||
|
#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER
|
||||||
|
|
||||||
#if defined(WOLFSSL_QT) || defined(WOLFSSL_HITCH)
|
|
||||||
#define SSLEAY_VERSION 0x10001000L
|
|
||||||
#else
|
|
||||||
#define SSLEAY_VERSION 0x0090600fL
|
|
||||||
#endif
|
|
||||||
#define SSLEAY_VERSION_NUMBER SSLEAY_VERSION
|
|
||||||
#define CRYPTO_lock wc_LockMutex_ex
|
#define CRYPTO_lock wc_LockMutex_ex
|
||||||
|
|
||||||
/* this function was used to set the default malloc, free, and realloc */
|
/* this function was used to set the default malloc, free, and realloc */
|
||||||
|
|
|
@ -57,6 +57,10 @@
|
||||||
#define OPENSSL_VERSION_TEXT "wolfSSL " LIBWOLFSSL_VERSION_STRING
|
#define OPENSSL_VERSION_TEXT "wolfSSL " LIBWOLFSSL_VERSION_STRING
|
||||||
#define OPENSSL_VERSION 0
|
#define OPENSSL_VERSION 0
|
||||||
|
|
||||||
|
#ifndef OPENSSL_IS_WOLFSSL
|
||||||
|
#define OPENSSL_IS_WOLFSSL
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* OPENSSL_EXTRA || OPENSSL_EXTRA_X509_SMALL */
|
#endif /* OPENSSL_EXTRA || OPENSSL_EXTRA_X509_SMALL */
|
||||||
|
|
||||||
#endif /* header */
|
#endif /* header */
|
||||||
|
|
|
@ -32,6 +32,8 @@
|
||||||
|
|
||||||
#ifdef WOLFSSL_QUIC
|
#ifdef WOLFSSL_QUIC
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
/* QUIC operates on three encryption levels which determine
|
/* QUIC operates on three encryption levels which determine
|
||||||
* which keys/algos are used for de-/encryption. These are
|
* which keys/algos are used for de-/encryption. These are
|
||||||
* kept separately for incoming and outgoing data and.
|
* kept separately for incoming and outgoing data and.
|
||||||
|
|
|
@ -907,9 +907,13 @@ typedef struct w64wrapper {
|
||||||
|
|
||||||
#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
|
#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
|
||||||
#ifndef XGETENV
|
#ifndef XGETENV
|
||||||
|
#ifdef NO_GETENV
|
||||||
|
#define XGETENV(x) (NULL)
|
||||||
|
#else
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#define XGETENV getenv
|
#define XGETENV getenv
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif /* !NO_FILESYSTEM && !NO_STDIO_FILESYSTEM */
|
#endif /* !NO_FILESYSTEM && !NO_STDIO_FILESYSTEM */
|
||||||
|
|
||||||
#ifndef CTYPE_USER
|
#ifndef CTYPE_USER
|
||||||
|
@ -923,7 +927,11 @@ typedef struct w64wrapper {
|
||||||
#endif
|
#endif
|
||||||
#if defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
|
#if defined(OPENSSL_ALL) || defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL)
|
||||||
#define XISALNUM(c) isalnum((c))
|
#define XISALNUM(c) isalnum((c))
|
||||||
|
#ifdef NO_STDLIB_ISASCII
|
||||||
|
#define XISASCII(c) (((c) >= 0 && (c) <= 127) ? 1 : 0)
|
||||||
|
#else
|
||||||
#define XISASCII(c) isascii((c))
|
#define XISASCII(c) isascii((c))
|
||||||
|
#endif
|
||||||
#define XISSPACE(c) isspace((c))
|
#define XISSPACE(c) isspace((c))
|
||||||
#endif
|
#endif
|
||||||
/* needed by wolfSSL_check_domain_name() */
|
/* needed by wolfSSL_check_domain_name() */
|
||||||
|
|
|
@ -732,7 +732,9 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
||||||
#define SEPARATOR_CHAR ':'
|
#define SEPARATOR_CHAR ':'
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#ifndef NO_WOLFSSL_DIR
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
#endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#define XWRITE write
|
#define XWRITE write
|
||||||
|
|
|
@ -163,14 +163,18 @@
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
#endif
|
||||||
#ifdef __PPU
|
#ifdef __PPU
|
||||||
#include <netex/errno.h>
|
#include <netex/errno.h>
|
||||||
#else
|
#else
|
||||||
|
#ifdef HAVE_SYS_IOCTL_H
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_RENESAS_RA6M3G) || defined(WOLFSSL_RENESAS_RA6M3) ||\
|
#if defined(WOLFSSL_RENESAS_RA6M3G) || defined(WOLFSSL_RENESAS_RA6M3) ||\
|
||||||
defined(WOLFSSL_RENESAS_RA6M4) || \
|
defined(WOLFSSL_RENESAS_RA6M4) || \
|
||||||
|
|
Loading…
Reference in New Issue