Initial sshsm project structure

Issue-ID: AAF-94
Change-Id: I5e82fff418e7567b161acf9b98013a9b85ffc5b4
Signed-off-by: NingSun <ning.sun@intel.com>
diff --git a/SoftHSMv2/win32/util/util.vcxproj.filters.in b/SoftHSMv2/win32/util/util.vcxproj.filters.in
new file mode 100644
index 0000000..2c4171b
--- /dev/null
+++ b/SoftHSMv2/win32/util/util.vcxproj.filters.in
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8"?>

+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

+  <ItemGroup>

+    <Filter Include="Source Files">

+      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>

+      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>

+    </Filter>

+    <Filter Include="Resource Files">

+      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>

+      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>

+    </Filter>

+    <Filter Include="Common Header Files">

+      <UniqueIdentifier>{21eda3a1-8da0-4a99-967c-f218e4eecd08}</UniqueIdentifier>

+      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>

+    </Filter>

+    <Filter Include="Common Source Files">

+      <UniqueIdentifier>{fd946626-7e24-4f78-834b-a4c0ac6dc2f5}</UniqueIdentifier>

+      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>

+    </Filter>

+    <Filter Include="Header Files">

+      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>

+      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>

+    </Filter>

+    <Filter Include="Win32 Header Files">

+      <UniqueIdentifier>{f3a7acce-323d-4465-95bf-a326189dcdd5}</UniqueIdentifier>

+      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>

+    </Filter>

+    <Filter Include="Win32 Source Files">

+      <UniqueIdentifier>{2b77905a-99da-49cf-9cac-aa72e7e3182b}</UniqueIdentifier>

+      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>

+    </Filter>

+  </ItemGroup>

+  <ItemGroup>

+    <ClInclude Include="..\..\src\bin\common\findslot.h">

+      <Filter>Common Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\bin\common\getpw.h">

+      <Filter>Common Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\bin\common\library.h">

+      <Filter>Common Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\bin\util\softhsm2-util.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+@IF BOTAN

+    <ClInclude Include="..\..\src\bin\util\softhsm2-util-botan.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+@END BOTAN

+@IF OPENSSL

+    <ClInclude Include="..\..\src\bin\util\softhsm2-util-ossl.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\lib\crypto\OSSLComp.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+@END OPENSSL

+    <ClInclude Include="..\..\src\lib\pkcs11\cryptoki.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\lib\pkcs11\pkcs11.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\lib\pkcs11\pkcs11f.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\lib\pkcs11\pkcs11t.h">

+      <Filter>Header Files</Filter>

+    </ClInclude>

+    <ClInclude Include="..\..\src\bin\win32\getopt.h">

+      <Filter>Win32 Header Files</Filter>

+    </ClInclude>

+  </ItemGroup>

+  <ItemGroup>

+    <ClCompile Include="..\..\src\bin\common\findslot.cpp">

+      <Filter>Common Source Files</Filter>

+    </ClCompile>

+    <ClCompile Include="..\..\src\bin\common\getpw.cpp">

+      <Filter>Common Source Files</Filter>

+    </ClCompile>

+    <ClCompile Include="..\..\src\bin\common\library.cpp">

+      <Filter>Common Source Files</Filter>

+    </ClCompile>

+    <ClCompile Include="..\..\src\bin\util\softhsm2-util.cpp">

+      <Filter>Source Files</Filter>

+    </ClCompile>

+@IF BOTAN

+    <ClCompile Include="..\..\src\bin\util\softhsm2-util-botan.cpp">

+      <Filter>Source Files</Filter>

+    </ClCompile>

+@END BOTAN

+@IF OPENSSL

+    <ClCompile Include="..\..\src\bin\util\softhsm2-util-ossl.cpp">

+      <Filter>Source Files</Filter>

+    </ClCompile>

+    <ClCompile Include="..\..\src\lib\crypto\OSSLComp.cpp">

+      <Filter>Source Files</Filter>

+    </ClCompile>

+@END OPENSSL

+    <ClCompile Include="..\..\src\bin\win32\getopt.cpp">

+      <Filter>Win32 Source Files</Filter>

+    </ClCompile>

+    <ClCompile Include="..\..\src\bin\win32\getpassphase.cpp">

+      <Filter>Win32 Source Files</Filter>

+    </ClCompile>

+  </ItemGroup>

+</Project>

diff --git a/SoftHSMv2/win32/util/util.vcxproj.in b/SoftHSMv2/win32/util/util.vcxproj.in
new file mode 100644
index 0000000..28bdcd0
--- /dev/null
+++ b/SoftHSMv2/win32/util/util.vcxproj.in
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="utf-8"?>

+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

+  <ItemGroup Label="ProjectConfigurations">

+    <ProjectConfiguration Include="Debug|@PLATFORM@">

+      <Configuration>Debug</Configuration>

+      <Platform>@PLATFORM@</Platform>

+    </ProjectConfiguration>

+    <ProjectConfiguration Include="Release|@PLATFORM@">

+      <Configuration>Release</Configuration>

+      <Platform>@PLATFORM@</Platform>

+    </ProjectConfiguration>

+  </ItemGroup>

+  <PropertyGroup Label="Globals">

+    <ProjectGuid>{05901466-4184-47C8-9D6C-3BB99BBF5378}</ProjectGuid>

+    <Keyword>Win32Proj</Keyword>

+    <RootNamespace>util</RootNamespace>

+  </PropertyGroup>

+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />

+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">

+    <ConfigurationType>Application</ConfigurationType>

+    <UseDebugLibraries>true</UseDebugLibraries>

+    <CharacterSet>Unicode</CharacterSet>

+	<PlatformToolset>@PLATFORMTOOLSET@</PlatformToolset>

+  </PropertyGroup>

+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">

+    <ConfigurationType>Application</ConfigurationType>

+    <UseDebugLibraries>false</UseDebugLibraries>

+    <WholeProgramOptimization>true</WholeProgramOptimization>

+    <CharacterSet>Unicode</CharacterSet>

+	<PlatformToolset>@PLATFORMTOOLSET@</PlatformToolset>

+  </PropertyGroup>

+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />

+  <ImportGroup Label="ExtensionSettings">

+  </ImportGroup>

+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">

+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />

+  </ImportGroup>

+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">

+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />

+  </ImportGroup>

+  <PropertyGroup Label="UserMacros" />

+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">

+    <LinkIncremental>true</LinkIncremental>

+    <TargetName>softhsm2-util</TargetName>

+  </PropertyGroup>

+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">

+    <LinkIncremental>false</LinkIncremental>

+    <TargetName>softhsm2-util</TargetName>

+  </PropertyGroup>

+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">

+    <ClCompile>

+      <PrecompiledHeader>

+      </PrecompiledHeader>

+      <WarningLevel>Level3</WarningLevel>

+      <Optimization>Disabled</Optimization>

+      <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>

+      <AdditionalIncludeDirectories>..;..\..\src\bin\common;..\..\src\bin\win32;..\..\src\lib\pkcs11;..\..\src\lib;..\..\src\lib\common;..\..\src\lib\crypto;..\..\src\lib\data_mgr;..\..\src\lib\object_store;..\..\src\lib\win32\;@DEBUGINCPATH@;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

+      <RuntimeLibrary>@RUNTIMELIBRARY@</RuntimeLibrary>

+    </ClCompile>

+    <Link>

+      <SubSystem>Console</SubSystem>

+      <GenerateDebugInformation>true</GenerateDebugInformation>

+      <AdditionalLibraryDirectories>..\@PLATFORMDIR@$(Configuration);@DEBUGLIBPATH@;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

+      <AdditionalDependencies>convarch.lib;@LIBNAME@;@EXTRALIBS@%(AdditionalDependencies)</AdditionalDependencies>

+    </Link>

+    <PostBuildEvent>

+      <Command>if exist @DEBUGDLLPATH@ copy @DEBUGDLLPATH@ ..\@PLATFORMDIR@$(Configuration)</Command>

+    </PostBuildEvent>

+  </ItemDefinitionGroup>

+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">

+    <ClCompile>

+      <WarningLevel>Level3</WarningLevel>

+      <PrecompiledHeader>

+      </PrecompiledHeader>

+      <Optimization>MaxSpeed</Optimization>

+      <FunctionLevelLinking>true</FunctionLevelLinking>

+      <IntrinsicFunctions>true</IntrinsicFunctions>

+      <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>

+      <AdditionalIncludeDirectories>..;..\..\src\bin\common;..\..\src\bin\win32;..\..\src\lib\pkcs11;..\..\src\lib;..\..\src\lib\common;..\..\src\lib\crypto;..\..\src\lib\data_mgr;..\..\src\lib\object_store;..\..\src\lib\win32\;@INCLUDEPATH@;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

+      <RuntimeLibrary>@RUNTIMELIBRARY@</RuntimeLibrary>

+    </ClCompile>

+    <Link>

+      <SubSystem>Console</SubSystem>

+      <GenerateDebugInformation>true</GenerateDebugInformation>

+      <EnableCOMDATFolding>true</EnableCOMDATFolding>

+      <OptimizeReferences>true</OptimizeReferences>

+      <AdditionalLibraryDirectories>..\@PLATFORMDIR@$(Configuration);@LIBPATH@;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>

+      <AdditionalDependencies>convarch.lib;@LIBNAME@;@EXTRALIBS@%(AdditionalDependencies)</AdditionalDependencies>

+    </Link>

+    <PostBuildEvent>

+      <Command>if exist @DLLPATH@ copy @DLLPATH@ ..\@PLATFORMDIR@$(Configuration)</Command>

+    </PostBuildEvent>

+  </ItemDefinitionGroup>

+  <ItemGroup>

+    <ClInclude Include="..\..\src\bin\common\findslot.h" />

+    <ClInclude Include="..\..\src\bin\common\getpw.h" />

+    <ClInclude Include="..\..\src\bin\common\library.h" />

+@IF BOTAN

+    <ClInclude Include="..\..\src\bin\util\softhsm2-util-botan.h" />

+@END BOTAN

+@IF OPENSSL

+    <ClInclude Include="..\..\src\bin\util\softhsm2-util-ossl.h" />

+    <ClInclude Include="..\..\src\lib\crypto\OSSLComp.h" />

+@END OPENSSL

+    <ClInclude Include="..\..\src\bin\util\softhsm2-util.h" />

+    <ClInclude Include="..\..\src\bin\win32\getopt.h" />

+    <ClInclude Include="..\..\src\lib\pkcs11\cryptoki.h" />

+    <ClInclude Include="..\..\src\lib\pkcs11\pkcs11.h" />

+    <ClInclude Include="..\..\src\lib\pkcs11\pkcs11f.h" />

+    <ClInclude Include="..\..\src\lib\pkcs11\pkcs11t.h" />

+  </ItemGroup>

+  <ItemGroup>

+    <ClCompile Include="..\..\src\bin\common\findslot.cpp" />

+    <ClCompile Include="..\..\src\bin\common\getpw.cpp" />

+    <ClCompile Include="..\..\src\bin\common\library.cpp" />

+@IF BOTAN

+    <ClCompile Include="..\..\src\bin\util\softhsm2-util-botan.cpp" />

+@END BOTAN

+@IF OPENSSL

+    <ClCompile Include="..\..\src\bin\util\softhsm2-util-ossl.cpp" />

+    <ClCompile Include="..\..\src\lib\crypto\OSSLComp.cpp" />

+@END OPENSSL

+    <ClCompile Include="..\..\src\bin\util\softhsm2-util.cpp" />

+    <ClCompile Include="..\..\src\bin\win32\getopt.cpp" />

+    <ClCompile Include="..\..\src\bin\win32\getpassphase.cpp" />

+  </ItemGroup>

+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

+  <ImportGroup Label="ExtensionTargets">

+  </ImportGroup>

+</Project>

diff --git a/SoftHSMv2/win32/util/util.vcxproj.user b/SoftHSMv2/win32/util/util.vcxproj.user
new file mode 100644
index 0000000..695b5c7
--- /dev/null
+++ b/SoftHSMv2/win32/util/util.vcxproj.user
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="utf-8"?>

+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

+</Project>
\ No newline at end of file