diff options
| author | Amlal <amlal@el-mahrouss-logic.com> | 2024-10-24 20:11:21 +0200 |
|---|---|---|
| committer | Amlal <amlal@el-mahrouss-logic.com> | 2024-10-24 20:11:21 +0200 |
| commit | b0850d02b7fba8f0e16092c7609e928907d2521d (patch) | |
| tree | 81ba785ba42607dff1df3538f305a23b8c2b1ce5 /dev/base | |
| parent | 52b4044ab4956597aee4c629ba5fe5ec8966beac (diff) | |
IMP: Doing a cleanup and finishing the first version of ZKA.
Signed-off-by: Amlal <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'dev/base')
| -rw-r--r-- | dev/base/.keepme | 0 | ||||
| -rw-r--r-- | dev/base/EncryptFS/ReadMe.md | 11 | ||||
| -rw-r--r-- | dev/base/EncryptFS/build.json | 20 | ||||
| -rw-r--r-- | dev/base/EncryptFS/disk_crypt.h | 31 | ||||
| -rw-r--r-- | dev/base/EncryptFS/src/disk_crypt.cc | 14 | ||||
| -rw-r--r-- | dev/base/FireWall/FireWall.h | 11 | ||||
| -rw-r--r-- | dev/base/FireWall/build.json | 19 | ||||
| -rw-r--r-- | dev/base/FireWall/src/FireWall.cc | 34 | ||||
| -rw-r--r-- | dev/base/ReadMe.md | 7 | ||||
| -rw-r--r-- | dev/base/RunDLL64/build.json | 19 | ||||
| -rw-r--r-- | dev/base/RunDLL64/src/Main.cc | 26 | ||||
| -rw-r--r-- | dev/base/RunXPCOM/build.json | 19 | ||||
| -rw-r--r-- | dev/base/RunXPCOM/src/Main.cc | 32 | ||||
| -rw-r--r-- | dev/base/View/IPDF.h | 51 | ||||
| -rw-r--r-- | dev/base/View/VPainter.h | 9 | ||||
| -rw-r--r-- | dev/base/View/build.json | 21 | ||||
| -rw-r--r-- | dev/base/View/src/IPDF.cc | 7 | ||||
| -rw-r--r-- | dev/base/View/src/VPainter.cc | 7 |
18 files changed, 0 insertions, 338 deletions
diff --git a/dev/base/.keepme b/dev/base/.keepme deleted file mode 100644 index e69de29b..00000000 --- a/dev/base/.keepme +++ /dev/null diff --git a/dev/base/EncryptFS/ReadMe.md b/dev/base/EncryptFS/ReadMe.md deleted file mode 100644 index c9304515..00000000 --- a/dev/base/EncryptFS/ReadMe.md +++ /dev/null @@ -1,11 +0,0 @@ -# ZKA Encrypted File System. - -### Purpose: - -This is ZKA's Encrypted File System DLL. - -### Building: - -`btb build.json` - -###### (c) ZKA Web Services Co, all rights reserved. diff --git a/dev/base/EncryptFS/build.json b/dev/base/EncryptFS/build.json deleted file mode 100644 index 4dcefa38..00000000 --- a/dev/base/EncryptFS/build.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../", "./"], - "sources_path": ["src/*.cc"], - "output_name": "efs.zsc", - "compiler_flags": [ - "-ffreestanding", - "-shared", - "-fno-rtti", - "-fno-exceptions", - " -Wl,--subsystem=17" - ], - "cpp_macros": [ - "__EFS_AMD64__", - "cEFSVersion=0x0100", - "cEFSVersionHighest=0x0100", - "cEFSVersionLowest=0x0100" - ] -} diff --git a/dev/base/EncryptFS/disk_crypt.h b/dev/base/EncryptFS/disk_crypt.h deleted file mode 100644 index 981ebc78..00000000 --- a/dev/base/EncryptFS/disk_crypt.h +++ /dev/null @@ -1,31 +0,0 @@ -/* -------------------------------------------
-
- Copyright ZKA Web Services Co.
-
- File: disk_encrypt.h
- Purpose: Disk Encryption File System
-
- Revision History:
-
- 8/8/2024: Added file (amlel)
-
-------------------------------------------- */
-
-#pragma once
-
-#include <FSKit/NeFS.h>
-
-namespace Kernel
-{
- /**************************************** */
- /// @brief Locks an EFS partition.
- /**************************************** */
-
- Int32 efs_lock_partition(const Char* partition_name, const Char* password, SizeT length);
-
- /**************************************** */
- /// @brief Unlocks an EFS partition.
- /**************************************** */
-
- Int32 efs_unlock_partition(const Char* partition_name, const Char* password, SizeT length);
-} // namespace Kernel
diff --git a/dev/base/EncryptFS/src/disk_crypt.cc b/dev/base/EncryptFS/src/disk_crypt.cc deleted file mode 100644 index 334e2d4d..00000000 --- a/dev/base/EncryptFS/src/disk_crypt.cc +++ /dev/null @@ -1,14 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - -------------------------------------------- */ - -#include <EncryptFS/disk_crypt.h> - -enum -{ - kEFSFlagEncryptedFree = 0x00, - kEFSFlagEncryptedUnlocked = 0x3f, - kEFSFlagEncryptedLock = 0xf3, -}; diff --git a/dev/base/FireWall/FireWall.h b/dev/base/FireWall/FireWall.h deleted file mode 100644 index b9a1c57e..00000000 --- a/dev/base/FireWall/FireWall.h +++ /dev/null @@ -1,11 +0,0 @@ -/* - * Copyright (c) 2024 ZKA Web Services Co - */ - -#pragma once - -#include <sci/sci_base.h> - -IMPORT_C Bool FwAllowConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6); - -IMPORT_C Bool FwForbidConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6); diff --git a/dev/base/FireWall/build.json b/dev/base/FireWall/build.json deleted file mode 100644 index 77657ca5..00000000 --- a/dev/base/FireWall/build.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++.exe", - "compiler_std": "c++20", - "headers_path": [ "../", "./", "../../" ], - "sources_path": [ "src/*.cc" ], - "output_name": "firewall.exe", - "compiler_flags": [ - "-ffreestanding", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17" - ], - "cpp_macros": [ - "__FIREWALL_AMD64__", - "cFWVersion=0x0100", - "cFWVersionHighest=0x0100", - "cFWVersionLowest=0x0100" - ] -} diff --git a/dev/base/FireWall/src/FireWall.cc b/dev/base/FireWall/src/FireWall.cc deleted file mode 100644 index 1afae1c5..00000000 --- a/dev/base/FireWall/src/FireWall.cc +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (c) 2024 ZKA Web Services Co - */ - -#include <FireWall/FireWall.h> - -struct FW_CONNECTION_ENTRY -{ - Bool is_ipv6, is_allowed; - Char f_ip_address; - SizeT f_ip_address_len; -}; - -IMPORT_C Bool FwAllowConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6) -{ - if (!ip_address || - !ip_address_len) - return No; - - - - return Yes; -} - -IMPORT_C Bool FwForbidConnection(const Char* ip_address, SizeT ip_address_len, Bool is_ipv6) -{ - if (!ip_address || - !ip_address_len) - return No; - - - - return Yes; -} diff --git a/dev/base/ReadMe.md b/dev/base/ReadMe.md deleted file mode 100644 index 83d9dfec..00000000 --- a/dev/base/ReadMe.md +++ /dev/null @@ -1,7 +0,0 @@ -# ZKA User apps and services.
-
-## Description:
-
-- Provides firewall, filesystem encrypter and rundll/runxpcom tools.
-
-###### Copyright ZKA Web Services Co, all rights reserved.
diff --git a/dev/base/RunDLL64/build.json b/dev/base/RunDLL64/build.json deleted file mode 100644 index b129f8e4..00000000 --- a/dev/base/RunDLL64/build.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../", "./", "../../"], - "sources_path": ["src/*.cc"], - "output_name": "rundll64.exe", - "compiler_flags": [ - "-ffreestanding", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17" - ], - "cpp_macros": [ - "__RUNDLL_AMD64__", - "cRunDLLVersion=0x0100", - "cRunDLLVersionHighest=0x0100", - "cRunDLLVersionLowest=0x0100" - ] -} diff --git a/dev/base/RunDLL64/src/Main.cc b/dev/base/RunDLL64/src/Main.cc deleted file mode 100644 index ee3cdfa6..00000000 --- a/dev/base/RunDLL64/src/Main.cc +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) 2024 ZKA Web Services Co - */ - -#include <sci/sci_base.h> - -typedef int (*MainKind)(int, char**); - -int main(int argc, char* argv[]) -{ - if (argc < 3) - return -1; - - auto mainDll = LdrOpenDLL(argv[1], argv[2]); - - int (*entrypointOff)(int, char**) = (MainKind)LdrGetDLLProc(argv[3], mainDll); - - if (!entrypointOff) - return -1; - - int ret = entrypointOff(argc, argv); - - LdrCloseDLL(mainDll); - - return ret; -} diff --git a/dev/base/RunXPCOM/build.json b/dev/base/RunXPCOM/build.json deleted file mode 100644 index ec91d543..00000000 --- a/dev/base/RunXPCOM/build.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../", "./", "../../"], - "sources_path": ["src/*.cc"], - "output_name": "runxpcom.exe", - "compiler_flags": [ - "-ffreestanding", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17" - ], - "cpp_macros": [ - "__SCM_AMD64__", - "cSCMVersion=0x0100", - "cSCMVersionHighest=0x0100", - "cSCMVersionLowest=0x0100" - ] -} diff --git a/dev/base/RunXPCOM/src/Main.cc b/dev/base/RunXPCOM/src/Main.cc deleted file mode 100644 index 3fcfc708..00000000 --- a/dev/base/RunXPCOM/src/Main.cc +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2024 ZKA Web Services Co - */ - -#include <sci/sci_base.h> - -typedef SInt32 (*RPCProcKind)(IUnknown*); - -/** - * @brief Main procedure for DLL runner. - */ -int main(int argc, char* argv[]) -{ - if (argc < 4) - return -1; - - auto mainDll = LdrOpenDLL(argv[1], argv[2]); - - IUnknown* interface = (IUnknown*)LdrGetDLLProc(argv[3], mainDll); - RPCProcKind dllRpc = (RPCProcKind)LdrGetDLLProc(argv[4], mainDll); - - if (!dllRpc) - return -1; - if (!interface) - return -1; - - auto ret = dllRpc(interface); - - LdrCloseDLL(mainDll); - - return ret; -} diff --git a/dev/base/View/IPDF.h b/dev/base/View/IPDF.h deleted file mode 100644 index b28806d7..00000000 --- a/dev/base/View/IPDF.h +++ /dev/null @@ -1,51 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - -------------------------------------------- */ - -#pragma once - -#include <sci/sci_base.h> - -namespace View::PDF -{ - class IPDF; - class IPDFDocument; - class IPDFTimestamp; - class IPDFTag; - - /// \brief PDF manipulator class. - class IPDF - { - public: - explicit IPDF() = default; - virtual ~IPDF() = default; - - IPDF& operator=(const IPDF&) = delete; - IPDF(const IPDF&) = delete; - - virtual IPDFDocument* GetFirstPage() = 0; - virtual IPDFDocument* GetLastPage() = 0; - - virtual IPDFDocument* GetPage(const UInt32& page_number); - virtual SInt32 SetPage(const UInt32& page_number, IPDFDocument* new_page); - - virtual Void SetProducer(const Char*) = 0; - virtual Void SetTitle(const Char*) = 0; - virtual Void SetAuthor(const Char*) = 0; - virtual Void SetSubject(const Char*) = 0; - - virtual const Char* GetProducer() = 0; - virtual const Char* GetTitle() = 0; - virtual const Char* GetAuthor() = 0; - virtual const Char* GetSubject() = 0; - - virtual Bool IsFastView() = 0; - - virtual SizeT GetWidth() = 0; - virtual SizeT GetHeight() = 0; - - virtual SizeT GetPageCount() = 0; - }; -} // namespace View::PDF diff --git a/dev/base/View/VPainter.h b/dev/base/View/VPainter.h deleted file mode 100644 index c39a9780..00000000 --- a/dev/base/View/VPainter.h +++ /dev/null @@ -1,9 +0,0 @@ -/* ------------------------------------------- - -Copyright ZKA Web Services Co. - -------------------------------------------- */ - -#pragma once - -#include <sci/sci_base.h> diff --git a/dev/base/View/build.json b/dev/base/View/build.json deleted file mode 100644 index a98e8730..00000000 --- a/dev/base/View/build.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compiler_path": "x86_64-w64-mingw32-g++", - "compiler_std": "c++20", - "headers_path": ["../", "../../", "../../zka"], - "sources_path": ["src/*.cc"], - "output_name": "ViewPDF.exe", - "compiler_flags": [ - "-fPIC", - "-ffreestanding", - "-shared", - "-fno-rtti", - "-fno-exceptions", - "-Wl,--subsystem=17" - ], - "cpp_macros": [ - "__VIEW_PDF_IMPL__", - "cPDFVersion=0x0100", - "cPDFVersionHighest=0x0100", - "cPDFVersionLowest=0x0100" - ] -} diff --git a/dev/base/View/src/IPDF.cc b/dev/base/View/src/IPDF.cc deleted file mode 100644 index 2126b64a..00000000 --- a/dev/base/View/src/IPDF.cc +++ /dev/null @@ -1,7 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - -------------------------------------------- */ - -#include <View/IPDF.h> diff --git a/dev/base/View/src/VPainter.cc b/dev/base/View/src/VPainter.cc deleted file mode 100644 index 92f1075a..00000000 --- a/dev/base/View/src/VPainter.cc +++ /dev/null @@ -1,7 +0,0 @@ -/* ------------------------------------------- - - Copyright ZKA Web Services Co. - -------------------------------------------- */ - -#include <View/VPainter.h> |
