Skip to content

Commit 2f3da02

Browse files
committed
Visual Studio project for standalone C signing tool.
1 parent 1bdfb32 commit 2f3da02

4 files changed

Lines changed: 212 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,6 @@ config/*.ld
8181

8282
# Generated confiuguration file
8383
.config
84+
.vs
85+
*.filters
86+
*.user

tools/keytools/sign.c

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
#include <sys/stat.h>
5656
#include <sys/types.h>
5757

58+
#ifdef _WIN32
59+
#define PATH_MAX 256
60+
#endif
61+
5862
#define WOLFBOOT_MAGIC 0x464C4F57 /* WOLF */
5963

6064
#define HDR_VERSION 0x01
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.28307.779
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wolfBootSignTool", "wolfBootSignTool.vcxproj", "{0E5B9C81-CA2B-47CA-BA83-074078CF3393}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|x64 = Release|x64
13+
Release|x86 = Release|x86
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x64.ActiveCfg = Debug|x64
17+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x64.Build.0 = Debug|x64
18+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x86.ActiveCfg = Debug|Win32
19+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Debug|x86.Build.0 = Debug|Win32
20+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x64.ActiveCfg = Release|x64
21+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x64.Build.0 = Release|x64
22+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x86.ActiveCfg = Release|Win32
23+
{0E5B9C81-CA2B-47CA-BA83-074078CF3393}.Release|x86.Build.0 = Release|Win32
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {002B85D3-20F7-44FB-BFA5-6B5AC72F499B}
30+
EndGlobalSection
31+
EndGlobal
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup Label="ProjectConfigurations">
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<ProjectGuid>{0E5B9C81-CA2B-47CA-BA83-074078CF3393}</ProjectGuid>
23+
<Keyword>Win32Proj</Keyword>
24+
<RootNamespace>wolfBootSignTool</RootNamespace>
25+
<WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
26+
</PropertyGroup>
27+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
28+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
29+
<ConfigurationType>Application</ConfigurationType>
30+
<UseDebugLibraries>true</UseDebugLibraries>
31+
<PlatformToolset>v141</PlatformToolset>
32+
<CharacterSet>Unicode</CharacterSet>
33+
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
35+
<ConfigurationType>Application</ConfigurationType>
36+
<UseDebugLibraries>false</UseDebugLibraries>
37+
<PlatformToolset>v141</PlatformToolset>
38+
<WholeProgramOptimization>true</WholeProgramOptimization>
39+
<CharacterSet>Unicode</CharacterSet>
40+
</PropertyGroup>
41+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
42+
<ConfigurationType>Application</ConfigurationType>
43+
<UseDebugLibraries>true</UseDebugLibraries>
44+
<PlatformToolset>v141</PlatformToolset>
45+
<CharacterSet>Unicode</CharacterSet>
46+
</PropertyGroup>
47+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
48+
<ConfigurationType>Application</ConfigurationType>
49+
<UseDebugLibraries>false</UseDebugLibraries>
50+
<PlatformToolset>v141</PlatformToolset>
51+
<WholeProgramOptimization>true</WholeProgramOptimization>
52+
<CharacterSet>Unicode</CharacterSet>
53+
</PropertyGroup>
54+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
55+
<ImportGroup Label="ExtensionSettings">
56+
</ImportGroup>
57+
<ImportGroup Label="Shared">
58+
</ImportGroup>
59+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
60+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
61+
</ImportGroup>
62+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64+
</ImportGroup>
65+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
66+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
67+
</ImportGroup>
68+
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
69+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
70+
</ImportGroup>
71+
<PropertyGroup Label="UserMacros" />
72+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
73+
<LinkIncremental>true</LinkIncremental>
74+
<TargetName>sign</TargetName>
75+
</PropertyGroup>
76+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
77+
<LinkIncremental>true</LinkIncremental>
78+
</PropertyGroup>
79+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
80+
<LinkIncremental>false</LinkIncremental>
81+
<TargetName>sign</TargetName>
82+
</PropertyGroup>
83+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
84+
<LinkIncremental>false</LinkIncremental>
85+
</PropertyGroup>
86+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
87+
<ClCompile>
88+
<PrecompiledHeader>
89+
</PrecompiledHeader>
90+
<WarningLevel>Level3</WarningLevel>
91+
<Optimization>Disabled</Optimization>
92+
<PreprocessorDefinitions>WIN32;WOLFSSL_USER_SETTINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
93+
<AdditionalIncludeDirectories>..\..\lib\wolfssl;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
94+
</ClCompile>
95+
<Link>
96+
<SubSystem>Console</SubSystem>
97+
<GenerateDebugInformation>true</GenerateDebugInformation>
98+
</Link>
99+
</ItemDefinitionGroup>
100+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
101+
<ClCompile>
102+
<PrecompiledHeader>
103+
</PrecompiledHeader>
104+
<WarningLevel>Level3</WarningLevel>
105+
<Optimization>Disabled</Optimization>
106+
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
107+
</ClCompile>
108+
<Link>
109+
<SubSystem>Console</SubSystem>
110+
<GenerateDebugInformation>true</GenerateDebugInformation>
111+
</Link>
112+
</ItemDefinitionGroup>
113+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
114+
<ClCompile>
115+
<WarningLevel>Level3</WarningLevel>
116+
<PrecompiledHeader>
117+
</PrecompiledHeader>
118+
<Optimization>MaxSpeed</Optimization>
119+
<FunctionLevelLinking>true</FunctionLevelLinking>
120+
<IntrinsicFunctions>true</IntrinsicFunctions>
121+
<PreprocessorDefinitions>WIN32;WOLFSSL_USER_SETTINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
122+
<AdditionalIncludeDirectories>..\..\lib\wolfssl;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
123+
</ClCompile>
124+
<Link>
125+
<SubSystem>Console</SubSystem>
126+
<GenerateDebugInformation>true</GenerateDebugInformation>
127+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
128+
<OptimizeReferences>true</OptimizeReferences>
129+
</Link>
130+
</ItemDefinitionGroup>
131+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
132+
<ClCompile>
133+
<WarningLevel>Level3</WarningLevel>
134+
<PrecompiledHeader>
135+
</PrecompiledHeader>
136+
<Optimization>MaxSpeed</Optimization>
137+
<FunctionLevelLinking>true</FunctionLevelLinking>
138+
<IntrinsicFunctions>true</IntrinsicFunctions>
139+
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
140+
</ClCompile>
141+
<Link>
142+
<SubSystem>Console</SubSystem>
143+
<GenerateDebugInformation>true</GenerateDebugInformation>
144+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
145+
<OptimizeReferences>true</OptimizeReferences>
146+
</Link>
147+
</ItemDefinitionGroup>
148+
<ItemGroup>
149+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\asn.c" />
150+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\coding.c" />
151+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\ecc.c" />
152+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\ed25519.c" />
153+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\fe_operations.c" />
154+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\ge_operations.c" />
155+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\hash.c" />
156+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\logging.c" />
157+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\memory.c" />
158+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\random.c" />
159+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\rsa.c" />
160+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\sha256.c" />
161+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\sha3.c" />
162+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\sha512.c" />
163+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\sp_c32.c" />
164+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\sp_c64.c" />
165+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\sp_int.c" />
166+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\tfm.c" />
167+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\wc_port.c" />
168+
<ClCompile Include="..\..\lib\wolfssl\wolfcrypt\src\wolfmath.c" />
169+
<ClCompile Include="sign.c" />
170+
</ItemGroup>
171+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
172+
<ImportGroup Label="ExtensionTargets">
173+
</ImportGroup>
174+
</Project>

0 commit comments

Comments
 (0)