summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-02-17 22:55:54 +0300
committerSaikari <[email protected]>2026-02-17 22:55:54 +0300
commit994c838e48bfabace4b6deda4d5dc51ee0e101a0 (patch)
tree84100a31d7a16393f794a26e8f5aae0eb6a32a23 /core/src
parent6a89f384f8dc2f837f52cbbab7ea903d34dd6175 (diff)
todo
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/winos/file_signature.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/xmake/winos/file_signature.c b/core/src/xmake/winos/file_signature.c
index 3c79d78d4..d9d262544 100644
--- a/core/src/xmake/winos/file_signature.c
+++ b/core/src/xmake/winos/file_signature.c
@@ -37,19 +37,19 @@
/* //////////////////////////////////////////////////////////////////////////////////////
* types
*/
-/// the file signature info type
+// the file signature info type
typedef struct __tb_file_signature_info_t {
- /// is the file digitally signed?
+ // is the file digitally signed?
tb_bool_t is_signed;
- /// is the signature valid and trusted by the OS?
+ // is the signature valid and trusted by the OS?
tb_bool_t is_trusted;
- /// the name of the signer (e.g., "Microsoft Corporation")
- /// tbox uses UTF-8 by default for tb_char_t
+ /* the name of the signer (e.g., "Microsoft Corporation")
+ tbox uses UTF-8 by default for tb_char_t*/
tb_char_t signer_name[256];
-}tb_file_signature_info_t;
+} tb_file_signature_info_t;
/* //////////////////////////////////////////////////////////////////////////////////////
* private implementation
@@ -74,7 +74,7 @@ static tb_bool_t tb_file_get_signature_info(tb_char_t const* filepath, tb_file_s
// convert path
tb_wchar_t wide_path[TB_PATH_MAXN];
- if (!tb_path_to_wchar(filepath, wide_path, TB_PATH_MAXN)) return tb_false;
+ if (!tb_path_absolute_w(filepath, wide_path, TB_PATH_MAXN)) return tb_false;
// init file info
WINTRUST_FILE_INFO file_data = {0};
@@ -87,7 +87,7 @@ static tb_bool_t tb_file_get_signature_info(tb_char_t const* filepath, tb_file_s
WINTRUST_DATA trust_data = {0};
trust_data.cbStruct = sizeof(trust_data);
trust_data.dwUIChoice = WTD_UI_NONE;
- trust_data.fdwRevocationChecks = WTD_REVOKE_NONE;
+ trust_data.fdwRevocationChecks = WTD_REVOKE_WHOLECHAIN;
trust_data.dwUnionChoice = WTD_CHOICE_FILE;
trust_data.dwStateAction = WTD_STATEACTION_VERIFY;
trust_data.hWVTStateData = NULL;