Skip to content

Commit 97a588d

Browse files
committed
Add install step for root certificates
1 parent 113b9a9 commit 97a588d

13 files changed

+101
-13
lines changed

include/Common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626
#include <time.h>
2727
#include "Log.h"
2828

29-
#define VERSION "2.8.0"
29+
#define VERSION "2.9.0"

include/util.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ std::string QuoteFilename ( const std::string& file
3838
std::string GetEnv ( std::string variable );
3939
std::wstring FromUTF8 ( const std::string& strPath );
4040
std::string ToUTF8 ( const std::wstring& strPath );
41+
int InstallEmbeddedCertificate ( WORD resourceId, const std::string& md5 );

premake5.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ workspace "MTADiag"
2323
kind "ConsoleApp"
2424

2525
defines { "BUILDING_LIBCURL" }
26-
includedirs { "include", "vendor/curl/include" }
26+
includedirs { "include", "vendor/curl/include", "res" }
2727
links { "curl" }
2828

2929
files {
@@ -34,5 +34,6 @@ workspace "MTADiag"
3434

3535
"src/**.cpp",
3636

37-
"res/**.rc"
37+
"res/**.rc",
38+
"res/**.h",
3839
}

res/1 Certum Trusted Network CA.cer

959 Bytes
Binary file not shown.

res/2 Certum Trusted Network CA 2.cer

1.45 KB
Binary file not shown.

res/3 Certum Code Signing 2021 CA.cer

1.68 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

res/resource.aps

13.1 KB
Binary file not shown.

res/resource.rc

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
/////////////////////////////////////////////////////////////////////////////
2-
3-
//
4-
5-
// Icon
6-
7-
//
1+
// Copyright (c) 2024 Multi Theft Auto team and contributors
2+
// SPDX-License-Identifier: GPL-3.0-only
83

4+
#pragma code_page(65001)
95

6+
#include "resources.h"
107

118
// Icon with lowest ID value placed first to ensure application icon
12-
139
// remains consistent on all systems.
14-
15-
IDI_APPLICATION ICON "MTADiag.ico"
10+
IDI_APPLICATION ICON "MTADiag.ico"
11+
12+
// Certificates supplied with the application.
13+
ID_CERTIFICATE_1_ID RCDATA "1 Certum Trusted Network CA.cer"
14+
ID_CERTIFICATE_2_ID RCDATA "2 Certum Trusted Network CA 2.cer"
15+
ID_CERTIFICATE_3_ID RCDATA "3 Certum Code Signing 2021 CA.cer"
16+
ID_CERTIFICATE_4_ID RCDATA "4 SSL.com Root Certification Authority RSA.cer"
17+
ID_CERTIFICATE_5_ID RCDATA "5 SSL.com Code Signing Intermediate CA RSA R1.cer"

0 commit comments

Comments
 (0)