8 Commits

Author SHA1 Message Date
5a3197d3de change decapsulate signature 2025-03-01 19:19:27 +01:00
e8441205a4 emplace (was insert) 2025-03-01 19:11:30 +01:00
254de7a9ee enhance io options 2025-03-01 11:12:18 +01:00
9fa023f716 generic encapsulator 2025-02-27 22:50:51 +01:00
f6620dc522 compress refactor 2025-02-27 21:45:09 +01:00
6a52b7fe2a fix compression 2025-02-26 15:09:23 +01:00
68fcd514a3 xmake: rename targets 2025-02-26 12:34:58 +01:00
5f9cc86ad2 xmake: add target extensions deps 2025-02-26 12:33:19 +01:00
4 changed files with 2 additions and 82 deletions

View File

@@ -1,31 +0,0 @@
name: Linux arm64
run-name: Build And Test
on: [push]
env:
XMAKE_ROOT: y
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Prepare XMake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'ubuntu'
- name: XMake config
run: xmake f -p linux -y
- name: Build
run: xmake
- name: Test
run: xmake test

View File

@@ -1,41 +0,0 @@
#pragma once
/**
* \file Encrypt.h
* \brief File containing encrypt utilities
*/
#include <sp/common/DataBuffer.h>
namespace sp {
namespace option {
struct TlsEncrypt {
bool m_Enabled = true;
};
} // namespace option
} // namespace sp
#include <sp/io/IOInterface.h>
namespace sp {
namespace ssl {
// encrypt
// decrypt
} // namespace ssl
namespace io {
template <>
class MessageEncapsulator<option::TlsEncrypt> {
public:
static DataBuffer Encapsulate(const DataBuffer& a_Data, const option::TlsEncrypt& a_Option);
static DataBuffer Decapsulate(DataBuffer& a_Data, const option::TlsEncrypt& a_Option);
};
} // namespace io
} // namespace sp

View File

@@ -1,3 +0,0 @@
#include <sp/extensions/Encrypt.h>
#include <openssl/ssl.h>

View File

@@ -6,14 +6,9 @@ local modules = {
Compression = { Compression = {
Option = "zlib", Option = "zlib",
Deps = {"zlib"}, Deps = {"zlib"},
Packages = {"zlib"},
Includes = {"include/(sp/extensions/Compress.h)"}, Includes = {"include/(sp/extensions/Compress.h)"},
Sources = {"src/sp/extensions/Compress.cpp"} Sources = {"src/sp/extensions/Compress.cpp"}
},
Encryption = {
Option = "ssl",
Deps = {"openssl"},
Includes = {"include/(sp/extensions/Encrypt.h)"},
Sources = {"src/sp/extensions/Encrypt.cpp"}
} }
} }
@@ -42,7 +37,7 @@ for name, module in table.orderpairs(modules) do
for _, source in table.orderpairs(module.Sources) do for _, source in table.orderpairs(module.Sources) do
add_files(source) add_files(source)
end end
for _, package in table.orderpairs(module.Deps) do for _, package in table.orderpairs(module.Packages) do
add_packages(package) add_packages(package)
end end
set_group("Library") set_group("Library")