private.h: rename to contain dir 52/229852/1 accepted/tizen/unified/20200407.043313 submit/tizen/20200406.043810
authorAndy Green <andy@warmcat.com>
Thu, 15 Aug 2019 09:49:52 +0000 (10:49 +0100)
committerCheoleun Moon <chleun.moon@samsung.com>
Mon, 6 Apr 2020 04:33:55 +0000 (13:33 +0900)
Having unique private header names is a requirement of a particular
platform build system it's desirable to work with

https://github.com/warmcat/libwebsockets/commit/d7f0521aeb7e98bbbcdd1ed75df7331cfb11aa36

Change-Id: Ie7ebb3e65f352ee81be0f168c8b1d2226fa6f33a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
182 files changed:
CMakeLists.txt
lib/abstract/abstract.c
lib/abstract/private-lib-abstract.h [moved from lib/abstract/private.h with 100% similarity]
lib/abstract/protocols/smtp/smtp.c
lib/abstract/test-sequencer.c
lib/abstract/transports/raw-skt.c
lib/abstract/transports/unit-test.c
lib/core-net/adopt.c
lib/core-net/client.c
lib/core-net/close.c
lib/core-net/connect.c
lib/core-net/dummy-callback.c
lib/core-net/lws-dsh.c
lib/core-net/network.c
lib/core-net/output.c
lib/core-net/pollfd.c
lib/core-net/private-lib-core-net.h [moved from lib/core-net/private.h with 99% similarity]
lib/core-net/sequencer.c
lib/core-net/server.c
lib/core-net/service.c
lib/core-net/sorted-usec-list.c
lib/core-net/stats.c
lib/core-net/vhost.c
lib/core-net/wsi-timeout.c
lib/core-net/wsi.c
lib/core/alloc.c
lib/core/buflist.c
lib/core/context.c
lib/core/libwebsockets.c
lib/core/logs.c
lib/core/lws_dll.c
lib/core/lws_dll2.c
lib/core/private-lib-core.h [moved from lib/core/private.h with 98% similarity]
lib/core/vfs.c
lib/event-libs/README.md
lib/event-libs/libev/libev.c
lib/event-libs/libev/private-lib-event-libs-libev.h [moved from lib/event-libs/libev/private.h with 100% similarity]
lib/event-libs/libevent/libevent.c
lib/event-libs/libevent/private-lib-event-libs-libevent.h [moved from lib/event-libs/libevent/private.h with 100% similarity]
lib/event-libs/libuv/libuv.c
lib/event-libs/libuv/private-lib-event-libs-libuv.h [moved from lib/event-libs/libuv/private.h with 100% similarity]
lib/event-libs/poll/poll.c
lib/event-libs/poll/private-lib-event-libs-poll.h [moved from lib/event-libs/poll/private.h with 100% similarity]
lib/event-libs/private-lib-event-libs.h [moved from lib/event-libs/private.h with 91% similarity]
lib/jose/jwe/enc/aescbc.c
lib/jose/jwe/enc/aesgcm.c
lib/jose/jwe/enc/aeskw.c
lib/jose/jwe/jwe-ecdh-es-aeskw.c
lib/jose/jwe/jwe-rsa-aescbc.c
lib/jose/jwe/jwe-rsa-aesgcm.c
lib/jose/jwe/jwe.c
lib/jose/jwe/private-lib-jose-jwe.h [moved from lib/jose/jwe/private.h with 100% similarity]
lib/jose/jwk/jwk.c
lib/jose/jws/jose.c
lib/jose/jws/jws.c
lib/jose/jws/private-lib-jose-jws.h [moved from lib/jose/jws/private.h with 100% similarity]
lib/jose/private-lib-jose.h [moved from lib/jose/private.h with 100% similarity]
lib/misc/base64-decode.c
lib/misc/daemonize.c
lib/misc/dir.c
lib/misc/diskcache.c
lib/misc/fts/private-lib-misc-fts.h [moved from lib/misc/fts/private.h with 100% similarity]
lib/misc/fts/trie-fd.c
lib/misc/fts/trie.c
lib/misc/getifaddrs.c
lib/misc/lejp.c
lib/misc/lws-ring.c
lib/misc/lws-struct-lejp.c
lib/misc/lws-struct-sqlite.c
lib/misc/lwsac/cached-file.c
lib/misc/lwsac/lwsac.c
lib/misc/lwsac/private-lib-misc-lwsac.h [moved from lib/misc/lwsac/private.h with 100% similarity]
lib/misc/peer-limits.c
lib/misc/sha-1.c
lib/misc/threadpool/threadpool.c
lib/plat/esp32/esp32-fds.c
lib/plat/esp32/esp32-file.c
lib/plat/esp32/esp32-helpers.c
lib/plat/esp32/esp32-init.c
lib/plat/esp32/esp32-misc.c
lib/plat/esp32/esp32-pipe.c
lib/plat/esp32/esp32-service.c
lib/plat/esp32/esp32-sockets.c
lib/plat/esp32/private-lib-plat-esp32.h [moved from lib/plat/esp32/private.h with 97% similarity]
lib/plat/optee/lws-plat-optee.c
lib/plat/optee/network.c
lib/plat/optee/private-lib-plat-optee.h [moved from lib/plat/optee/private.h with 96% similarity]
lib/plat/unix/private-lib-plat-unix.h [moved from lib/plat/unix/private.h with 98% similarity]
lib/plat/unix/unix-caps.c
lib/plat/unix/unix-fds.c
lib/plat/unix/unix-file.c
lib/plat/unix/unix-init.c
lib/plat/unix/unix-misc.c
lib/plat/unix/unix-pipe.c
lib/plat/unix/unix-plugins.c
lib/plat/unix/unix-service.c
lib/plat/unix/unix-sockets.c
lib/plat/windows/private-lib-plat-windows.h [moved from lib/plat/windows/private.h with 97% similarity]
lib/plat/windows/windows-fds.c
lib/plat/windows/windows-file.c
lib/plat/windows/windows-init.c
lib/plat/windows/windows-misc.c
lib/plat/windows/windows-pipe.c
lib/plat/windows/windows-plugins.c
lib/plat/windows/windows-service.c
lib/plat/windows/windows-sockets.c
lib/roles/README.md
lib/roles/cgi/cgi-server.c
lib/roles/cgi/ops-cgi.c
lib/roles/cgi/private-lib-roles-cgi.h [moved from lib/roles/cgi/private.h with 97% similarity]
lib/roles/dbus/dbus.c
lib/roles/dbus/private-lib-roles-dbus.h [moved from lib/roles/dbus/private.h with 95% similarity]
lib/roles/h1/ops-h1.c
lib/roles/h1/private-lib-roles-h1.h [moved from lib/roles/h1/private.h with 94% similarity]
lib/roles/h2/hpack.c
lib/roles/h2/http2.c
lib/roles/h2/ops-h2.c
lib/roles/h2/private-lib-roles-h2.h [moved from lib/roles/h2/private.h with 100% similarity]
lib/roles/http/client/client-handshake.c
lib/roles/http/client/client-http.c [moved from lib/roles/http/client/client.c with 99% similarity]
lib/roles/http/compression/README.md
lib/roles/http/compression/brotli/brotli.c
lib/roles/http/compression/deflate/deflate.c
lib/roles/http/compression/private-lib-roles-http-compression.h [moved from lib/roles/http/compression/private.h with 96% similarity]
lib/roles/http/compression/stream.c
lib/roles/http/header.c
lib/roles/http/private-lib-roles-http.h [moved from lib/roles/http/private.h with 98% similarity]
lib/roles/http/server/access-log.c
lib/roles/http/server/fops-zip.c
lib/roles/http/server/lejp-conf.c
lib/roles/http/server/lws-spa.c
lib/roles/http/server/parsers.c
lib/roles/http/server/ranges.c
lib/roles/http/server/rewrite.c
lib/roles/http/server/server.c
lib/roles/listen/ops-listen.c
lib/roles/pipe/ops-pipe.c
lib/roles/private-lib-roles.h [moved from lib/roles/private.h with 97% similarity]
lib/roles/raw-file/ops-raw-file.c
lib/roles/raw-proxy/ops-raw-proxy.c
lib/roles/raw-proxy/private-lib-roles-raw-proxy.h [moved from lib/roles/raw-proxy/private.h with 94% similarity]
lib/roles/raw-skt/ops-raw-skt.c
lib/roles/ws/client-parser-ws.c
lib/roles/ws/client-ws.c
lib/roles/ws/ext/extension-permessage-deflate.c
lib/roles/ws/ext/extension.c
lib/roles/ws/ops-ws.c
lib/roles/ws/private-lib-roles-ws.h [moved from lib/roles/ws/private.h with 98% similarity]
lib/roles/ws/server-ws.c
lib/tls/lws-gencrypto-common.c
lib/tls/lws-genec-common.c
lib/tls/mbedtls/lws-genaes.c
lib/tls/mbedtls/lws-gencrypto.c
lib/tls/mbedtls/lws-genec.c
lib/tls/mbedtls/lws-genrsa.c
lib/tls/mbedtls/mbedtls-client.c
lib/tls/mbedtls/mbedtls-server.c
lib/tls/mbedtls/mbedtls-ssl.c [moved from lib/tls/mbedtls/ssl.c with 99% similarity]
lib/tls/mbedtls/mbedtls-tls.c [moved from lib/tls/mbedtls/tls.c with 94% similarity]
lib/tls/mbedtls/mbedtls-x509.c [moved from lib/tls/mbedtls/x509.c with 99% similarity]
lib/tls/mbedtls/private-lib-tls-mbedtls.h [moved from lib/tls/mbedtls/private.h with 100% similarity]
lib/tls/mbedtls/wrapper/include/internal/ssl_dbg.h
lib/tls/mbedtls/wrapper/include/internal/ssl_types.h
lib/tls/mbedtls/wrapper/include/openssl/ssl.h
lib/tls/mbedtls/wrapper/library/ssl_lib.c
lib/tls/mbedtls/wrapper/platform/ssl_pm.c
lib/tls/openssl/lws-genaes.c
lib/tls/openssl/lws-gencrypto.c
lib/tls/openssl/lws-genec.c
lib/tls/openssl/lws-genrsa.c
lib/tls/openssl/openssl-client.c
lib/tls/openssl/openssl-server.c
lib/tls/openssl/openssl-ssl.c [moved from lib/tls/openssl/ssl.c with 99% similarity]
lib/tls/openssl/openssl-tls.c [moved from lib/tls/openssl/tls.c with 98% similarity]
lib/tls/openssl/openssl-x509.c [moved from lib/tls/openssl/x509.c with 99% similarity]
lib/tls/openssl/private-lib-tls-openssl.h [moved from lib/tls/openssl/private.h with 100% similarity]
lib/tls/private-lib-tls.h [moved from lib/tls/private.h with 95% similarity]
lib/tls/private-network.h
lib/tls/tls-client.c
lib/tls/tls-network.c
lib/tls/tls-server.c
lib/tls/tls.c

index 491531a..a07683c 100644 (file)
@@ -339,7 +339,26 @@ if (NOT LWS_ROLE_WS)
        set(LWS_WITHOUT_EXTENSIONS 1)
 endif()
 
-include_directories(include plugins)
+if (LWS_WITH_MBEDTLS)
+       include_directories(lib/tls/mbedtls/wrapper/include)
+endif()
+
+include_directories(include plugins lib/core lib/core-net lib/event-libs include/abstract lib/tls lib/roles lib/event-libs/libuv lib/event-libs/poll lib/event-libs/libevent lib/event-libs/libev lib/jose/jwe lib/jose/jws lib/jose lib/misc lib/roles/http lib/roles/http/compression lib/roles/h1 lib/roles/h2 lib/roles/ws lib/roles/cgi lib/roles/dbus lib/roles/raw-proxy)
+
+if (LWS_WITH_ESP32)
+       include_directories(lib/plat/esp32)
+else()
+       if (WIN32)
+               include_directories(lib/plat/windows)
+       else()
+               if (LWS_WITH_OPTEE)
+                       include_directories(lib/plat/optee)
+               else()
+                       include_directories(lib/plat/unix)
+               endif()
+       endif()
+endif()
+
 
 if (LWS_WITH_LWSWS)
  message(STATUS "LWS_WITH_LWSWS --> Enabling LWS_WITH_PLUGINS and LWS_WITH_LIBUV")
@@ -940,7 +959,7 @@ include_directories("${PROJECT_SOURCE_DIR}/lib")
 # Group headers and sources.
 # Some IDEs use this for nicer file structure.
 set(HDR_PRIVATE
-       lib/core/private.h)
+       lib/core/private-lib-core.h)
 
 set(HDR_PUBLIC
        "${PROJECT_SOURCE_DIR}/include/libwebsockets.h"
@@ -1119,7 +1138,7 @@ if (NOT LWS_WITHOUT_CLIENT)
        list(APPEND SOURCES
                lib/core-net/connect.c
                lib/core-net/client.c
-               lib/roles/http/client/client.c
+               lib/roles/http/client/client-http.c
                lib/roles/http/client/client-handshake.c)
 endif()
 
@@ -1185,12 +1204,12 @@ if (LWS_WITH_SSL)
                
        if (LWS_WITH_MBEDTLS)
                list(APPEND SOURCES
-                       lib/tls/mbedtls/tls.c
-                       lib/tls/mbedtls/x509.c
+                       lib/tls/mbedtls/mbedtls-tls.c
+                       lib/tls/mbedtls/mbedtls-x509.c
                )
                if (LWS_WITH_NETWORK)
                        list(APPEND SOURCES
-                               lib/tls/mbedtls/ssl.c
+                               lib/tls/mbedtls/mbedtls-ssl.c
                        )
                endif()
                if (LWS_WITH_GENCRYPTO)
@@ -1205,12 +1224,12 @@ if (LWS_WITH_SSL)
                endif()
        else()
                list(APPEND SOURCES
-                       lib/tls/openssl/tls.c
-                       lib/tls/openssl/x509.c
+                       lib/tls/openssl/openssl-tls.c
+                       lib/tls/openssl/openssl-x509.c
                )
                if (LWS_WITH_NETWORK)
                        list(APPEND SOURCES
-                               lib/tls/openssl/ssl.c
+                               lib/tls/openssl/openssl-ssl.c
                        )
                endif()
                if (LWS_WITH_GENCRYPTO)
index 0f52869..ad17545 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
-#include <abstract/private.h>
+#include <private-lib-core.h>
+#include <private-lib-abstract.h>
 
 extern const lws_abs_transport_t lws_abs_transport_cli_raw_skt,
                                 lws_abs_transport_cli_unit_test;
index 668ab19..eb52518 100644 (file)
@@ -19,8 +19,8 @@
  * MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "abstract/private.h"
+#include "private-lib-core.h"
+#include "private-lib-abstract.h"
 
 /** enum lwsgs_smtp_states - where we are in SMTP protocol sequence */
 typedef enum lwsgs_smtp_states {
index 2872aef..f1e1dff 100644 (file)
@@ -26,7 +26,7 @@
  * for each test using te
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 struct lws_seq_test_sequencer {
        lws_abs_t                       original_abs;
index 74f08ab..eab8715 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "abstract/private.h"
+#include "private-lib-core.h"
+#include "private-lib-abstract.h"
 
 typedef struct lws_abstxp_raw_skt_priv {
        struct lws_abs *abs;
index c891861..b1095ae 100644 (file)
@@ -24,8 +24,8 @@
  * to provided canned packets from an array of test vectors.
  */
 
-#include "core/private.h"
-#include "abstract/private.h"
+#include "private-lib-core.h"
+#include "private-lib-abstract.h"
 
 /* this is the transport priv instantiated at abs->ati */
 
index 9b84af2..43e8954 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 static int
index 873478b..90283ef 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 LWS_VISIBLE int
index f561e94..97719aa 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 void
index 604bebb..ea66687 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 void
 lws_client_stash_destroy(struct lws *wsi)
index bf227eb..5b0a468 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined(LWS_WITH_HTTP_PROXY)
 static int
index 7e28dad..c902670 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 struct lws_dsh_search {
        size_t          required;
index 8c3fe1a..e487369 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if !defined(LWS_WITH_ESP32) && !defined(LWS_PLAT_OPTEE)
 static int
index bcbc6d5..7c43eec 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * notice this returns number of bytes consumed, or -1
index 725861c..77057e3 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 _lws_change_pollfd(struct lws *wsi, int _and, int _or, struct lws_pollargs *pa)
similarity index 99%
rename from lib/core-net/private.h
rename to lib/core-net/private-lib-core-net.h
index 7d5910e..16ca46c 100644 (file)
@@ -26,7 +26,7 @@
 #define _POSIX_C_SOURCE 200112L
 #endif
 
-#include "roles/private.h"
+#include "private-lib-roles.h"
 
 #ifdef LWS_WITH_IPV6
 #if defined(WIN32) || defined(_WIN32)
index fbfd752..be1e889 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * per pending event
index e64c034..9720bcb 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined(LWS_WITH_SERVER_STATUS)
 
index 05c14e9..d37379b 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_callback_as_writeable(struct lws *wsi)
index 12348f6..7b3c66f 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static int
 sul_compare(const lws_dll2_t *d, const lws_dll2_t *i)
index e87fc2e..5554483 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 #if defined(LWS_WITH_STATS)
index 69fe26a..85d3cbb 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 const struct lws_role_ops *available_roles[] = {
 #if defined(LWS_ROLE_H2)
index 88d0cb3..35b774a 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 void
 __lws_wsi_remove_from_sul(struct lws *wsi)
index 3968f62..8cbd940 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined (_DEBUG)
 void lwsi_set_role(struct lws *wsi, lws_wsi_state_t role)
index 09d8882..a0738a7 100644 (file)
@@ -1,4 +1,4 @@
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined(LWS_HAVE_MALLOC_USABLE_SIZE)
 
index 75c156f..e298c77 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifdef LWS_HAVE_SYS_TYPES_H
 #include <sys/types.h>
index f4887b9..03a52a0 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifndef LWS_BUILD_HASH
 #define LWS_BUILD_HASH "unknown-build-hash"
@@ -149,8 +149,12 @@ lwsl_info("context created\n");
 #endif
 
 #if defined(LWS_WITH_ESP32)
+#if defined(LWS_AMAZON_RTOS)
+       context->last_free_heap = xPortGetFreeHeapSize();
+#else
        context->last_free_heap = esp_get_free_heap_size();
 #endif
+#endif
 
        /* default to just the platform fops implementation */
 
index c425cdc..26b907d 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifdef LWS_HAVE_SYS_TYPES_H
 #include <sys/types.h>
index dbece69..51eef0b 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifdef LWS_HAVE_SYS_TYPES_H
 #include <sys/types.h>
index bbb9c2b..692c5de 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifdef LWS_HAVE_SYS_TYPES_H
 #include <sys/types.h>
index f3b47f9..9530c18 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifdef LWS_HAVE_SYS_TYPES_H
 #include <sys/types.h>
similarity index 98%
rename from lib/core/private.h
rename to lib/core/private-lib-core.h
index 196b43a..4fcc607 100644 (file)
   */
 
 #if defined(LWS_WITH_ESP32)
- #include "plat/esp32/private.h"
+ #include "private-lib-plat-esp32.h"
 #else
  #if defined(WIN32) || defined(_WIN32)
-  #include "plat/windows/private.h"
+  #include "private-lib-plat-windows.h"
  #else
   #if defined(LWS_PLAT_OPTEE)
-   #include "plat/optee/private.h"
+   #include "private-lib-plat.h"
   #else
-   #include "plat/unix/private.h"
+   #include "private-lib-plat-unix.h"
   #endif
  #endif
 #endif
 
 #include "libwebsockets.h"
 
-#include "tls/private.h"
+#include "private-lib-tls.h"
 
 #if defined(WIN32) || defined(_WIN32)
         // Visual studio older than 2015 and WIN_CE has only _stricmp
@@ -175,7 +175,7 @@ struct lws_protocols;
 struct lws;
 
 #if defined(LWS_WITH_NETWORK)
-#include "event-libs/private.h"
+#include "private-lib-event-libs.h"
 
 
 struct lws_io_watcher {
@@ -238,7 +238,7 @@ lws_mutex_refcount_unlock(struct lws_mutex_refcount *mr);
 #endif
 
 #if defined(LWS_WITH_NETWORK)
-#include "core-net/private.h"
+#include "private-lib-core-net.h"
 #endif
 
 struct lws_deferred_free
index 0f37d90..f11a36a 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 LWS_VISIBLE LWS_EXTERN void
index ccfbb7c..1fab4f4 100644 (file)
@@ -24,7 +24,7 @@ If the event lib is disabled in cmake, nothing in its directory is built or refe
 
 ### Event loop ops struct
 
-The event lib support is defined by `struct lws_event_loop_ops` in `lib/event-libs/private.h`,
+The event lib support is defined by `struct lws_event_loop_ops` in `lib/event-libs/private-lib-event-libs.h`,
 each event lib support instantiates one of these and fills in the appropriate ops
 callbacks to perform its job.  By convention that lives in
 `./lib/event-libs/**lib name**/**lib_name**.c`.
@@ -34,15 +34,15 @@ callbacks to perform its job.  By convention that lives in
 Truly private declarations for the event lib can go in the event-libs directory as you like.
 However when the declarations must be accessible to other things in lws build, eg,
 the event lib support adds members to `struct lws` when enabled, they should be in the
-event lib supporr directory in a file `private.h`.
+event lib support directory in a file `private-lib-event-libs-myeventlib.h`.
 
-Search for "bring in event libs private declarations" in `./lib/core/private.h
+Search for "bring in event libs private declarations" in `./lib/core/private-lib-core.h
 and add your private event lib support file there following the style used for the other
 event libs, eg,
 
 ```
 #if defined(LWS_WITH_LIBUV)
- #include "event-libs/libuv/private.h"
+ #include "event-libs/libuv/private-lib-event-libs-libuv.h"
 #endif
 ```
 
index 4b85c19..d1a587d 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static void
 lws_ev_hrtimer_cb(struct ev_loop *loop, struct ev_timer *watcher, int revents)
index cc89c75..0f85040 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static void
 lws_event_hrtimer_cb(int fd, short event, void *p)
index 58c2056..5d723a8 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static void
 lws_uv_sultimer_cb(uv_timer_t *timer
index 6fb312f..0296dd9 100644 (file)
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_ROLE_WS
+ *  This is included from private-lib-core.h if LWS_ROLE_WS
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 struct lws_event_loop_ops event_loop_ops_poll = {
        /* name */                      "poll",
similarity index 91%
rename from lib/event-libs/private.h
rename to lib/event-libs/private-lib-event-libs.h
index 58bca94..068cf14 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h
+ *  This is included from private-lib-core.h
  */
 
 struct lws_event_loop_ops {
@@ -57,18 +57,18 @@ struct lws_event_loop_ops {
 /* bring in event libs private declarations */
 
 #if defined(LWS_WITH_POLL)
-#include "event-libs/poll/private.h"
+#include "private-lib-event-libs-poll.h"
 #endif
 
 #if defined(LWS_WITH_LIBUV)
-#include "event-libs/libuv/private.h"
+#include "private-lib-event-libs-libuv.h"
 #endif
 
 #if defined(LWS_WITH_LIBEVENT)
-#include "event-libs/libevent/private.h"
+#include "private-lib-event-libs-libevent.h"
 #endif
 
 #if defined(LWS_WITH_LIBEV)
-#include "event-libs/libev/private.h"
+#include "private-lib-event-libs-libev.h"
 #endif
 
index 54cabc7..46ad7db 100644 (file)
@@ -22,8 +22,9 @@
  * JWE code for payload encrypt / decrypt using aescbc
  *
  */
-#include "core/private.h"
-#include "jose/jwe/private.h"
+
+#include "private-lib-core.h"
+#include "private-lib-jose-jwe.h"
 
 int
 lws_jwe_encrypt_cbc_hs(struct lws_jwe *jwe, uint8_t *cek,
index 4e93878..2abb1e3 100644 (file)
@@ -22,8 +22,9 @@
  * JWE code related to aes gcm
  *
  */
-#include "core/private.h"
-#include "jose/jwe/private.h"
+
+#include "private-lib-core.h"
+#include "private-lib-jose-jwe.h"
 
 /*
  * NOTICE this is AESGCM content encryption, it's not AES GCM key wrapping
index 7d0b5a7..2fc969d 100644 (file)
@@ -22,9 +22,9 @@
  * JWE code related to aeskw cbc
  *
  */
-#include "core/private.h"
-#include "jose/jwe/private.h"
 
+#include "private-lib-core.h"
+#include "private-lib-jose-jwe.h"
 
 /*
  * RFC3394 Key Wrap uses a 128-bit key, and bloats what it is wrapping by
index 4be1a56..29c7874 100644 (file)
@@ -22,8 +22,9 @@
  * JWE code related to ecdh-es + Concat KDF and aes kw
  *
  */
-#include "core/private.h"
-#include "jose/jwe/private.h"
+
+#include "private-lib-core.h"
+#include "private-lib-jose-jwe.h"
 
 /*
  * From RFC7518 JWA
index 7f2f21e..ad16945 100644 (file)
@@ -22,8 +22,9 @@
  * JWE code related to rsa + aescbc
  *
  */
-#include "core/private.h"
-#include "jose/jwe/private.h"
+
+#include "private-lib-core.h"
+#include "private-lib-jose-jwe.h"
 
 /*
  * Requirements on entry:
index 42eb0b2..d70e7f5 100644 (file)
@@ -22,8 +22,9 @@
  * JWE code related to aes gcm
  *
  */
-#include "core/private.h"
-#include "jose/jwe/private.h"
+
+#include "private-lib-core.h"
+#include "private-lib-jose-jwe.h"
 
 #define LWS_AESGCM_IV 12
 
index bb8446e..a99b163 100644 (file)
  * This supports RFC7516 JSON Web Encryption
  *
  */
-#include "core/private.h"
-#include "jose/private.h"
-#include "jose/jwe/private.h"
+
+#include "private-lib-core.h"
+#include "private-lib-jose.h"
+#include "private-lib-jose-jwe.h"
 
 /*
  * Currently only support flattened or compact (implicitly single signature)
index 35f4723..7b52536 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "jose/private.h"
+#include "private-lib-core.h"
+#include "private-lib-jose.h"
 
 #if !defined(LWS_PLAT_OPTEE) && !defined(OPTEE_DEV_KIT)
 #include <fcntl.h>
index 627fd23..7332087 100644 (file)
@@ -22,8 +22,8 @@
  * to specify its JOSE JSON object.  So it lives in ./lib/jose/jws/jose.c.
  */
 
-#include "core/private.h"
-#include "jose/private.h"
+#include "private-lib-core.h"
+#include "jose/private-lib-jose.h"
 
 #include <stdint.h>
 
index 2b37fd4..73991d2 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "private.h"
+#include "private-lib-core.h"
+#include "private-lib-jose-jws.h"
 
 /*
  * Currently only support flattened or compact (implicitly single signature)
index b46a942..010cc7d 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <stdio.h>
 #include <string.h>
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static const char encode_orig[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
                             "abcdefghijklmnopqrstuvwxyz0123456789+/";
index 52fd6ea..27076e7 100644 (file)
@@ -26,7 +26,7 @@
 #include <unistd.h>
 #include <errno.h>
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 pid_t pid_daemon;
 static char *lock_path;
index f3d8781..124b694 100644 (file)
@@ -23,7 +23,7 @@
 #define _DARWIN_C_SOURCE
 
 #include <libwebsockets.h>
-#include "core/private.h"
+#include "private-lib-core.h"
 #include <string.h>
 #include <stdio.h>
 
index 0a31810..d90805a 100644 (file)
@@ -22,7 +22,7 @@
 #define _GNU_SOURCE
 #include <pthread.h>
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #include <string.h>
 #include <stdio.h>
index cdb2e42..a4bfd11 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "misc/fts/private.h"
+#include "private-lib-core.h"
+#include "private-lib-misc-fts.h"
 
 #include <stdio.h>
 #include <string.h>
index d188165..774dc40 100644 (file)
@@ -30,8 +30,8 @@
  *    having to load it all in memory
  */
 
-#include "core/private.h"
-#include "misc/fts/private.h"
+#include "private-lib-core.h"
+#include "private-lib-misc-fts.h"
 
 #include <stdio.h>
 #include <string.h>
index 735b899..7daeec8 100644 (file)
@@ -43,7 +43,7 @@
 #include <string.h>
 #include <sys/ioctl.h>
 #include <unistd.h>
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifdef LWS_HAVE_SYS_SOCKIO_H
 #include <sys/sockio.h>
index 2190413..0113ef1 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #include <libwebsockets.h>
-#include "core/private.h"
+#include "private-lib-core.h"
 #include <string.h>
 #include <stdio.h>
 
index bbd4df9..0381b64 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 LWS_VISIBLE LWS_EXTERN struct lws_ring *
 lws_ring_create(size_t element_len, size_t count,
index af637cc..2862292 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #include <libwebsockets.h>
-#include <core/private.h>
+#include <private-lib-core.h>
 
 #include <assert.h>
 
index e89343e..ef17455 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #include <libwebsockets.h>
-#include <core/private.h>
+#include <private-lib-core.h>
 
 #include <sqlite3.h>
 
index 6598201..9c0bb10 100644 (file)
@@ -21,8 +21,8 @@
 
 #if !defined(LWS_PLAT_OPTEE) && !defined(OPTEE_DEV_KIT)
 
-#include "core/private.h"
-#include "misc/lwsac/private.h"
+#include "private-lib-core.h"
+#include "private-lib-misc-lwsac.h"
 
 /*
  * Helper for caching a file in memory in a lac, but also to check at intervals
index 6471c16..024c71e 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "misc/lwsac/private.h"
+#include "private-lib-core.h"
+#include "private-lib-misc-lwsac.h"
 
 void
 lws_list_ptr_insert(lws_list_ptr *head, lws_list_ptr *add,
index 53d9421..3bc1f9c 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /* requires context->lock */
 static void
index c17a437..b38971f 100644 (file)
@@ -32,7 +32,7 @@
  * implemented by Jun-ichiro itojun Itoh <itojun@itojun.org>
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifdef LWS_HAVE_SYS_TYPES_H
 #include <sys/types.h>
index de9bab7..0aeff68 100644 (file)
@@ -22,7 +22,7 @@
 #define _GNU_SOURCE
 #include <pthread.h>
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #include <string.h>
 #include <stdio.h>
index a6fc86c..1d74d62 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 void
 lws_plat_insert_socket_into_fds(struct lws_context *context, struct lws *wsi)
index f2909bb..0711f1e 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int lws_plat_apply_FD_CLOEXEC(int n)
 {
index 7ecaf6f..8ff16aa 100644 (file)
@@ -19,9 +19,9 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
-#include "misc/romfs.h"
+#include "romfs.h"
 #include <esp_ota_ops.h>
 #include <tcpip_adapter.h>
 #include <esp_image_format.h>
index 2f537d0..fe7e3f8 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_plat_context_early_init(void)
index 65de064..8f6e90b 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 lws_usec_t
 lws_now_usecs(void)
index c8e11c8..ac9950a 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_plat_pipe_create(struct lws *wsi)
index 36c7c69..28ccb14 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_plat_service(struct lws_context *context, int timeout_ms)
index 80b50c8..5e95479 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_send_pipe_choked(struct lws *wsi)
similarity index 97%
rename from lib/plat/esp32/private.h
rename to lib/plat/esp32/private-lib-plat-esp32.h
index fa48c51..e228540 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  Included from lib/core/private.h if LWS_WITH_ESP32
+ * Included from lib/private-lib-core.h if LWS_WITH_ESP32
  */
 
 #define MSG_NOSIGNAL 0
index 21307fd..674cda9 100644 (file)
@@ -1,4 +1,28 @@
-#include "core/private.h"
+/*
+ * libwebsockets - small server side websockets and web server implementation
+ *
+ * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "private-lib-core.h"
 
 #if !defined(LWS_WITH_NETWORK)
 #include <crypto/crypto.h>
index 2677de8..3444170 100644 (file)
@@ -1,4 +1,28 @@
-#include "core/private.h"
+/*
+ * libwebsockets - small server side websockets and web server implementation
+ *
+ * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "private-lib-core.h"
 
 
 int
similarity index 96%
rename from lib/plat/optee/private.h
rename to lib/plat/optee/private-lib-plat-optee.h
index 256289f..863a65c 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  Included from lib/core/private.h if LWS_WITH_OPTEE
+ * Included from lib/private-lib-core.h if LWS_WITH_OPTEE
  */
 
  #include <unistd.h>
similarity index 98%
rename from lib/plat/unix/private.h
rename to lib/plat/unix/private-lib-plat-unix.h
index 1702d4b..6aefa5c 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  Included from lib/core/private.h if no explicit platform
+ *  Included from lib/private-lib-core.h if no explicit platform
  */
 
 #include <fcntl.h>
index 3414e30..e4642d3 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #include <pwd.h>
 #include <grp.h>
index 221d967..1a84745 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 struct lws *
 wsi_from_fd(const struct lws_context *context, int fd)
index bcdc213..d94a430 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #include <pwd.h>
 #include <grp.h>
index 6204e52..2ccec19 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #include <pwd.h>
 #include <grp.h>
index f5e7a94..1c1fc4e 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 lws_usec_t
 lws_now_usecs(void)
index 64ce253..753f9bd 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 int
index a56046a..c9c09c9 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #include <pwd.h>
 #include <grp.h>
index 198da6d..71ed299 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_poll_listen_fd(struct lws_pollfd *fd)
index e356f91..3a6622f 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #define _GNU_SOURCE
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #include <pwd.h>
 #include <grp.h>
similarity index 97%
rename from lib/plat/windows/private.h
rename to lib/plat/windows/private-lib-plat-windows.h
index a7756d8..f6466b1 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  Included from lib/core/private.h if defined(WIN32) || defined(_WIN32)
+ * Included from lib/private-lib-core.h if defined(WIN32) || defined(_WIN32)
  */
 
  #ifndef WIN32_LEAN_AND_MEAN
index 0d324e8..d9defe7 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 struct lws *
 wsi_from_fd(const struct lws_context *context, lws_sockfd_type fd)
index 6516b70..4b78ce5 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int lws_plat_apply_FD_CLOEXEC(int n)
 {
index 5a2df0d..97dc558 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_plat_drop_app_privileges(struct lws_context *context, int actually_set)
index 9059a73..9a07a8b 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 lws_usec_t
index 0953871..04a3640 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_plat_pipe_create(struct lws *wsi)
index 7f83524..c14a648 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_plat_plugins_init(struct lws_context * context, const char * const *d)
index a0f0046..cb2aba0 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 LWS_EXTERN int
index 6ebff31..810b7c9 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
 #define _WINSOCK_DEPRECATED_NO_WARNINGS
 #endif
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 LWS_VISIBLE int
index 7905cfa..d0dd21c 100644 (file)
@@ -54,7 +54,7 @@ If the role is disabled in cmake, nothing in its directory is built.
 
 ### Role ops struct
 
-The role is defined by `struct lws_role_ops` in `lib/roles/private.h`,
+The role is defined by `struct lws_role_ops` in `lib/roles/private-lib-roles.h`,
 each role instantiates one of these and fills in the appropriate ops
 callbacks to perform its job.  By convention that lives in
 `./lib/roles/**role name**/ops-**role_name**.c`.
@@ -64,15 +64,15 @@ callbacks to perform its job.  By convention that lives in
 Truly private declarations for the role can go in the role directory as you like.
 However when the declarations must be accessible to other things in lws build, eg,
 the role adds members to `struct lws` when enabled, they should be in the role
-directory in a file `private.h`.
+directory in a file `private-lib-roles-myrole.h`.
 
-Search for "bring in role private declarations" in `./lib/roles/private.h
+Search for "bring in role private declarations" in `./lib/roles/private-lib-roles.h
 and add your private role file there following the style used for the other roles,
 eg,
 
 ```
 #if defined(LWS_ROLE_WS)
- #include "roles/ws/private.h"
+ #include "roles/ws/private-lib-roles-ws.h"
 #else
  #define lwsi_role_ws(wsi) (0)
 #endif
index ea93815..9cf1455 100644 (file)
@@ -21,7 +21,7 @@
 
 #define  _GNU_SOURCE
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined(WIN32) || defined(_WIN32)
 #else
index 4880e21..83297a3 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 static int
 rops_handle_POLLIN_cgi(struct lws_context_per_thread *pt, struct lws *wsi,
similarity index 97%
rename from lib/roles/cgi/private.h
rename to lib/roles/cgi/private-lib-roles-cgi.h
index 53e5f72..23e2e8f 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_ROLE_WS
+ * This is included from private-lib-core.h if LWS_ROLE_WS
  */
 
 #if defined(LWS_WITH_ZLIB)
index 0b82125..1a9003d 100644 (file)
@@ -33,7 +33,7 @@
  * worries we create a new shadow wsi until it looks like it is closing again.
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 #include <libwebsockets/lws-dbus.h>
 
similarity index 95%
rename from lib/roles/dbus/private.h
rename to lib/roles/dbus/private-lib-roles-dbus.h
index 5d7a9ac..7cca60c 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_ROLE_DBUS
+ * This is included from private-lib-core.h if LWS_ROLE_DBUS
  */
 
 #include <dbus/dbus.h>
index 87228e8..d1af4d2 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 #ifndef min
 #define min(a, b) ((a) < (b) ? (a) : (b))
similarity index 94%
rename from lib/roles/h1/private.h
rename to lib/roles/h1/private-lib-roles-h1.h
index 3f53954..4d34e6b 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_ROLE_H1
+ *  This is included from private-lib-core.h if LWS_ROLE_H1
  *
  *  Most of the h1 business is defined in the h1 / h2 common roles/http dir
  */
index f8b89c3..a624c4d 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * Official static header table for HPACK
index 76449b2..454e7a9 100644 (file)
@@ -19,8 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * bitmap of control messages that are valid to receive for each http2 state
index eb87fce..b581602 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 /*
  * These are the standardized defaults.
index 53498ec..42ac989 100644 (file)
@@ -1,4 +1,28 @@
-#include "core/private.h"
+/*
+ * libwebsockets - small server side websockets and web server implementation
+ *
+ * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "private-lib-core.h"
 
 static int
 lws_getaddrinfo46(struct lws *wsi, const char *ads, struct addrinfo **result)
similarity index 99%
rename from lib/roles/http/client/client.c
rename to lib/roles/http/client/client-http.c
index 65b7c54..d0052cc 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 LWS_VISIBLE LWS_EXTERN void
 lws_client_http_body_pending(struct lws *wsi, int something_left_to_send)
index 8d9d57f..ad42872 100644 (file)
@@ -6,7 +6,7 @@ specifically HTTP content streams, after the header, be it h1 or h2.
 
 The compression transforms expose an "ops" type struct and a compressor name
 as used by `content-encoding`... the ops struct definition can be found in
-./private.h.
+./private-lib-roles-http-compression.h.
 
 Because the compression transform depends on being able to send on its output
 before it can process new input, the transform adds a new kind of buflist
index 0c977de..4724a38 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 
 static int
index c092ec5..c9ab178 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static int
 lcs_init_compression_deflate(lws_comp_ctx_t *ctx, int decomp)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_WITH_HTTP_STREAM_COMPRESSION
+ *  This is included from private-lib-core.h if LWS_WITH_HTTP_STREAM_COMPRESSION
  */
 
 #if defined(LWS_WITH_MINIZ)
index 7acb58e..e6fea0e 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /* compression methods listed in order of preference */
 
index d161d78..d93a3f8 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 #include "lextable-strings.h"
 
 
similarity index 98%
rename from lib/roles/http/private.h
rename to lib/roles/http/private-lib-roles-http.h
index 5759c85..73a74d9 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if either H1 or H2 roles are
+ *  This is included from private-lib-core.h if either H1 or H2 roles are
  *  enabled
  */
 
@@ -28,7 +28,7 @@
  #endif
 
 #if defined(LWS_WITH_HTTP_STREAM_COMPRESSION)
-#include "roles/http/compression/private.h"
+#include "private-lib-roles-http-compression.h"
 #endif
 
 #define lwsi_role_http(wsi) (lwsi_role_h1(wsi) || lwsi_role_h2(wsi))
index 74ae30e..b39ecdb 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * Produce Apache-compatible log string for wsi, like this:
index 5c1d482..d3b625d 100644 (file)
@@ -51,7 +51,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined(LWS_WITH_MINIZ)
 #include <miniz.h>
index e8dfffd..dde5951 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #ifndef _WIN32
 /* this is needed for Travis CI */
index 4e25695..03bed2d 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #define LWS_MAX_ELEM_NAME 32
 
index 795b53b..c84c66d 100644 (file)
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static const unsigned char lextable[] = {
-#if defined(LWS_AMAZON_RTOS) || defined(LWS_AMAZON_LINUX)
-       #include "roles/http/lextable.h"
-#else
-       #include "../lextable.h"
-#endif
+       #include "lextable.h"
 };
 
 #define FAIL_CHAR 0x08
index 56ba748..8ae9cf6 100644 (file)
@@ -21,7 +21,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * RFC7233 examples
index eca443a..272fb12 100644 (file)
@@ -1,4 +1,4 @@
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined(LWS_WITH_HUBBUB)
 
index 3ecda73..6bf0f86 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 const char * const method_names[] = {
        "GET", "POST", "OPTIONS", "PUT", "PATCH", "DELETE", "CONNECT", "HEAD",
index 5d87f4b..6f85769 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 static int
 rops_handle_POLLIN_listen(struct lws_context_per_thread *pt, struct lws *wsi,
index 012050b..063c0db 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 static int
 rops_handle_POLLIN_pipe(struct lws_context_per_thread *pt, struct lws *wsi,
similarity index 97%
rename from lib/roles/private.h
rename to lib/roles/private-lib-roles.h
index 55d9550..48f07cf 100644 (file)
@@ -273,43 +273,43 @@ extern struct lws_role_ops role_ops_raw_skt, role_ops_raw_file, role_ops_listen,
 /* bring in role private declarations */
 
 #if defined(LWS_ROLE_H1) || defined(LWS_ROLE_H2)
- #include "roles/http/private.h"
+ #include "private-lib-roles-http.h"
 #else
  #define lwsi_role_http(wsi) (0)
 #endif
 
 #if defined(LWS_ROLE_H1)
- #include "roles/h1/private.h"
+ #include "private-lib-roles-h1.h"
 #else
  #define lwsi_role_h1(wsi) (0)
 #endif
 
 #if defined(LWS_ROLE_H2)
- #include "roles/h2/private.h"
+ #include "private-lib-roles-h2.h"
 #else
  #define lwsi_role_h2(wsi) (0)
 #endif
 
 #if defined(LWS_ROLE_WS)
- #include "roles/ws/private.h"
+ #include "private-lib-roles-ws.h"
 #else
  #define lwsi_role_ws(wsi) (0)
 #endif
 
 #if defined(LWS_ROLE_CGI)
- #include "roles/cgi/private.h"
+ #include "private-lib-roles-cgi.h"
 #else
  #define lwsi_role_cgi(wsi) (0)
 #endif
 
 #if defined(LWS_ROLE_DBUS)
- #include "roles/dbus/private.h"
+ #include "private-lib-roles-dbus.h"
 #else
  #define lwsi_role_dbus(wsi) (0)
 #endif
 
 #if defined(LWS_ROLE_RAW_PROXY)
- #include "roles/raw-proxy/private.h"
+ #include "private-lib-roles-raw-proxy.h"
 #else
  #define lwsi_role_raw_proxy(wsi) (0)
 #endif
index e19bd2a..c7b74ec 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 static int
 rops_handle_POLLIN_raw_file(struct lws_context_per_thread *pt, struct lws *wsi,
index 9deb9c1..3155598 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 static int
 rops_handle_POLLIN_raw_proxy(struct lws_context_per_thread *pt, struct lws *wsi,
similarity index 94%
rename from lib/roles/raw-proxy/private.h
rename to lib/roles/raw-proxy/private-lib-roles-raw-proxy.h
index 6f169d9..6c37cab 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_ROLE_RAW_PROXY
+ *  This is included from private-lib-core.h if LWS_ROLE_RAW_PROXY
  */
 
 extern struct lws_role_ops role_ops_raw_proxy;
index ab3429c..6f704a7 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 static int
 rops_handle_POLLIN_raw_skt(struct lws_context_per_thread *pt, struct lws *wsi,
index 299ba03..3dbceda 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * parsers.c: lws_ws_rx_sm() needs to be roughly kept in
index 61a59d5..dc85cbc 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 /*
  * In-place str to lower case
index b18efe1..5f2e83b 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 #include "extension-permessage-deflate.h"
 #include <stdio.h>
 #include <string.h>
index a8bb1c7..576cb14 100644 (file)
@@ -1,4 +1,28 @@
-#include "core/private.h"
+/*
+ * libwebsockets - small server side websockets and web server implementation
+ *
+ * Copyright (C) 2010 - 2019 Andy Green <andy@warmcat.com>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
+ * deal in the Software without restriction, including without limitation the
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ * sell copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ */
+
+#include "private-lib-core.h"
 
 #include "extension-permessage-deflate.h"
 
index ef0d8a6..c184f37 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 #define LWS_CPYAPP(ptr, str) { strcpy(ptr, str); ptr += strlen(str); }
 
similarity index 98%
rename from lib/roles/ws/private.h
rename to lib/roles/ws/private-lib-roles-ws.h
index 001b8f1..303d48f 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_ROLE_WS
+ *  This is included from private-lib-core.h if LWS_ROLE_WS
  */
 
 extern struct lws_role_ops role_ops_ws;
index 680c2e6..7e3e38a 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include <core/private.h>
+#include <private-lib-core.h>
 
 #define LWS_CPYAPP(ptr, str) { strcpy(ptr, str); ptr += strlen(str); }
 
index 468b530..149df00 100644 (file)
@@ -18,7 +18,8 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  */
-#include "core/private.h"
+
+#include "private-lib-core.h"
 
 /*
  * These came from RFC7518 (JSON Web Algorithms) Section 3
index 0df1c8b..c84bb4c 100644 (file)
@@ -21,7 +21,7 @@
  *  lws_genec provides an EC abstraction api in lws that works the
  *  same whether you are using openssl or mbedtls crypto functions underneath.
  */
-#include "core/private.h"
+#include "private-lib-core.h"
 
 const struct lws_ec_curves *
 lws_genec_curve(const struct lws_ec_curves *table, const char *name)
index 0e4da81..9e3a59a 100644 (file)
@@ -21,8 +21,8 @@
  *  lws_genaes provides an abstraction api for AES in lws that works the
  *  same whether you are using openssl or mbedtls hash functions underneath.
  */
-#include "core/private.h"
-#include "../../jose/private.h"
+#include "private-lib-core.h"
+#include "../../jose/private-lib-jose.h"
 
 static int operation_map[] = { MBEDTLS_AES_ENCRYPT, MBEDTLS_AES_DECRYPT };
 
index dd91ad5..a65292d 100644 (file)
@@ -21,8 +21,8 @@
  *  lws-gencrypto openssl-specific common code
  */
 
-#include "core/private.h"
-#include "tls/mbedtls/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-mbedtls.h"
 
 mbedtls_md_type_t
 lws_gencrypto_mbedtls_hash_to_MD_TYPE(enum lws_genhash_types hash_type)
index c7ff5e2..4cf6b25 100644 (file)
@@ -21,8 +21,8 @@
  *  lws_genec provides an EC abstraction api in lws that works the
  *  same whether you are using openssl or mbedtls crypto functions underneath.
  */
-#include "core/private.h"
-#include "tls/mbedtls/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-mbedtls.h"
 
 const struct lws_ec_curves lws_ec_curves[] = {
        /*
index 2589064..0554275 100644 (file)
@@ -21,8 +21,8 @@
  *  lws_genrsa provides an RSA abstraction api in lws that works the
  *  same whether you are using openssl or mbedtls crypto functions underneath.
  */
-#include "core/private.h"
-#include "tls/mbedtls/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-mbedtls.h"
 #include <mbedtls/rsa.h>
 
 LWS_VISIBLE void
index d3de991..0aab507 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 static int
 OpenSSL_client_verify_callback(int preverify_ok, X509_STORE_CTX *x509_ctx)
index f993a54..5c54d57 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 #include <mbedtls/x509_csr.h>
 
 int
similarity index 99%
rename from lib/tls/mbedtls/ssl.c
rename to lib/tls/mbedtls/mbedtls-ssl.c
index 4e8d20b..65f3725 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "tls/mbedtls/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-mbedtls.h"
 
 
 LWS_VISIBLE void
similarity index 94%
rename from lib/tls/mbedtls/tls.c
rename to lib/tls/mbedtls/mbedtls-tls.c
index ecb0949..e1954fd 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "tls/mbedtls/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-mbedtls.h"
 
 void
 lws_tls_err_describe_clear(void)
similarity index 99%
rename from lib/tls/mbedtls/x509.c
rename to lib/tls/mbedtls/mbedtls-x509.c
index 9c0ac05..99d9409 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "tls/mbedtls/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-mbedtls.h"
 #include <mbedtls/oid.h>
 
 #if defined(LWS_PLAT_OPTEE) || defined(OPTEE_DEV_KIT)
index ad32cb9..3b342db 100644 (file)
@@ -15,7 +15,7 @@
 #ifndef _SSL_DEBUG_H_
 #define _SSL_DEBUG_H_
 
-#include "platform/ssl_port.h"
+#include "ssl_port.h"
 
 #ifdef __cplusplus
  extern "C" {
index 1f5f948..bfd5c2e 100644 (file)
@@ -19,7 +19,7 @@
  extern "C" {
 #endif
 
-//#include "core/private.h"
+//#include "private-lib-core.h"
 #include <lws_config.h>
 #if defined(LWS_WITH_ESP32)
  /* AMAZON RTOS has its own setting via MTK_MBEDTLS_CONFIG_FILE */
index 9427283..f01e8c3 100755 (executable)
@@ -20,8 +20,8 @@
 #endif\r
 \r
 #include <stdlib.h>\r
-#include "internal/ssl_x509.h"\r
-#include "internal/ssl_pkey.h"\r
+#include "ssl_x509.h"\r
+#include "ssl_pkey.h"\r
 \r
 /*\r
 {\r
index ec46fd8..825be82 100644 (file)
@@ -19,7 +19,7 @@
 #include "ssl_dbg.h"
 #include "ssl_port.h"
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 char *
 lws_strncpy(char *dest, const char *src, size_t size);
index dea6894..776abf5 100755 (executable)
@@ -25,7 +25,7 @@
 #include "mbedtls/error.h"
 #include "mbedtls/certs.h"
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #define X509_INFO_STRING_LENGTH 8192
 
index cf3ac36..24b0486 100644 (file)
@@ -21,8 +21,8 @@
  *  lws_genaes provides an AES abstraction api in lws that works the
  *  same whether you are using openssl or mbedtls hash functions underneath.
  */
-#include "core/private.h"
-#include "../../jose/private.h"
+#include "private-lib-core.h"
+#include "../../jose/private-lib-jose.h"
 
 /*
  * Care: many openssl apis return 1 for success.  These are translated to the
index dd74149..f8634b5 100644 (file)
@@ -21,8 +21,8 @@
  *  lws-gencrypto openssl-specific common code
  */
 
-#include "core/private.h"
-#include "tls/openssl/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-openssl.h"
 
 /*
  * Care: many openssl apis return 1 for success.  These are translated to the
index cb62a67..67ce6c4 100644 (file)
@@ -21,8 +21,8 @@
  *  lws_genec provides an EC abstraction api in lws that works the
  *  same whether you are using openssl or mbedtls crypto functions underneath.
  */
-#include "core/private.h"
-#include "tls/openssl/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-openssl.h"
 
 /*
  * Care: many openssl apis return 1 for success.  These are translated to the
index ec7bde8..ea86577 100644 (file)
@@ -21,8 +21,8 @@
  *  lws_genrsa provides an RSA abstraction api in lws that works the
  *  same whether you are using openssl or mbedtls crypto functions underneath.
  */
-#include "core/private.h"
-#include "tls/openssl/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-openssl.h"
 
 /*
  * Care: many openssl apis return 1 for success.  These are translated to the
index f822f63..68948e7 100644 (file)
@@ -19,9 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-
-#include "tls/openssl/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-openssl.h"
 
 /*
  * Care: many openssl apis return 1 for success.  These are translated to the
index 917c0ea..f64e999 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * Care: many openssl apis return 1 for success.  These are translated to the
similarity index 99%
rename from lib/tls/openssl/ssl.c
rename to lib/tls/openssl/openssl-ssl.c
index ad2a76e..afe4f97 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "tls/openssl/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-openssl.h"
 #include <errno.h>
 
 int openssl_websocket_private_data_index,
similarity index 98%
rename from lib/tls/openssl/tls.c
rename to lib/tls/openssl/openssl-tls.c
index d14cd83..5a76de7 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "tls/openssl/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-openssl.h"
 
 extern int openssl_websocket_private_data_index,
 openssl_SSL_CTX_private_data_index;
similarity index 99%
rename from lib/tls/openssl/x509.c
rename to lib/tls/openssl/openssl-x509.c
index d441001..3dee44e 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "tls/openssl/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls-openssl.h"
 
 #if !defined(LWS_PLAT_OPTEE)
 static int
similarity index 95%
rename from lib/tls/private.h
rename to lib/tls/private-lib-tls.h
index 16b7d66..dc0d894 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_WITH_TLS
+ *  This is included from private-lib-core.h if LWS_WITH_TLS
  */
 
 #if !defined(__LWS_TLS_PRIVATE_H__)
@@ -60,7 +60,7 @@
   #include <mbedtls/aes.h>
   #include <mbedtls/gcm.h>
   #include <mbedtls/x509_crt.h>
-  #include "tls/mbedtls/wrapper/include/openssl/ssl.h" /* wrapper !!!! */
+  #include "openssl/ssl.h" /* wrapper !!!! */
  #else /* not esp32 */
   #if defined(LWS_WITH_MBEDTLS)
    #include <mbedtls/ssl.h>
@@ -70,7 +70,7 @@
    #include <mbedtls/x509_csr.h>
    #include <mbedtls/ecp.h>
    #include <mbedtls/ecdsa.h>
-   #include "tls/mbedtls/wrapper/include/openssl/ssl.h" /* wrapper !!!! */
+   #include "openssl/ssl.h" /* wrapper !!!! */
   #else
    #include <openssl/ssl.h>
    #include <openssl/evp.h>
@@ -118,7 +118,7 @@ typedef BIO lws_tls_bio;
 typedef X509 lws_tls_x509;
 
 #if defined(LWS_WITH_NETWORK)
-#include "tls/private-network.h"
+#include "private-network.h"
 #endif
 
 LWS_EXTERN int
index 806b62d..7933e0f 100644 (file)
@@ -18,7 +18,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  *  MA  02110-1301  USA
  *
- *  This is included from core/private.h if LWS_WITH_TLS
+ *  This is included from private-lib-core.h if LWS_WITH_TLS
  */
 
 struct lws_context_per_thread;
index 45911bd..d631e69 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 int
 lws_ssl_client_connect1(struct lws *wsi)
index 99b5ac8..76dcc23 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 /*
  * fakes POLLIN on all tls guys with buffered rx
index db14a6d..9fb459d 100644 (file)
@@ -19,7 +19,7 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
+#include "private-lib-core.h"
 
 #if defined(LWS_WITH_MBEDTLS) || (defined(OPENSSL_VERSION_NUMBER) && \
                                  OPENSSL_VERSION_NUMBER >= 0x10002000L)
index 0132573..39029e4 100644 (file)
@@ -19,8 +19,8 @@
  *  MA  02110-1301  USA
  */
 
-#include "core/private.h"
-#include "tls/private.h"
+#include "private-lib-core.h"
+#include "private-lib-tls.h"
 
 #if !defined(LWS_PLAT_OPTEE) && !defined(OPTEE_DEV_KIT)
 #if defined(LWS_WITH_ESP32) && !defined(LWS_AMAZON_RTOS)
@@ -275,11 +275,11 @@ lws_tls_extant(const char *name)
  * 4) LWS_TLS_EXTANT_YES: The certs are present with the correct name and we
  *    have the rights to read them.
  */
-#if !defined(LWS_AMAZON_RTOS)
+
 enum lws_tls_extant
 lws_tls_use_any_upgrade_check_extant(const char *name)
 {
-#if !defined(LWS_PLAT_OPTEE)
+#if !defined(LWS_PLAT_OPTEE) && !defined(LWS_AMAZON_RTOS)
 
        int n;
 
@@ -332,5 +332,3 @@ lws_tls_use_any_upgrade_check_extant(const char *name)
 #endif
        return LWS_TLS_EXTANT_YES;
 }
-#endif
-