- Updated VS2010 project files
diff --git a/visualc/VS2010/PolarSSL.sln b/visualc/VS2010/PolarSSL.sln
index 5a1f0ca..e049652 100644
--- a/visualc/VS2010/PolarSSL.sln
+++ b/visualc/VS2010/PolarSSL.sln
@@ -53,11 +53,6 @@
 		{46CF2D25-6A36-4189-B59C-E4815388E554} = {46CF2D25-6A36-4189-B59C-E4815388E554}

 	EndProjectSection

 EndProject

-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gen_random", "gen_random.vcxproj", "{CFA36CC7-515C-4E18-8F8F-5B56AB903352}"

-	ProjectSection(ProjectDependencies) = postProject

-		{46CF2D25-6A36-4189-B59C-E4815388E554} = {46CF2D25-6A36-4189-B59C-E4815388E554}

-	EndProjectSection

-EndProject

 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "generic_sum", "generic_sum.vcxproj", "{BE21679A-D26E-4A26-BC4F-382F57A33480}"

 	ProjectSection(ProjectDependencies) = postProject

 		{46CF2D25-6A36-4189-B59C-E4815388E554} = {46CF2D25-6A36-4189-B59C-E4815388E554}

@@ -108,6 +103,10 @@
 		{46CF2D25-6A36-4189-B59C-E4815388E554} = {46CF2D25-6A36-4189-B59C-E4815388E554}

 	EndProjectSection

 EndProject

+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gen_random_havege", "gen_random_havege.vcxproj", "{CFA36CC7-515C-4E18-8F8F-5B56AB903352}"

+EndProject

+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gen_random_ctr_drbg", "gen_random_ctr_drbg.vcxproj", "{316E338C-6DC1-4D11-81C1-91F20E92AB04}"

+EndProject

 Global

 	GlobalSection(SolutionConfigurationPlatforms) = preSolution

 		Debug|Win32 = Debug|Win32

@@ -204,14 +203,6 @@
 		{17D1A1DA-6803-4AA1-A0DB-566E00D7593C}.Release|Win32.Build.0 = Release|Win32

 		{17D1A1DA-6803-4AA1-A0DB-566E00D7593C}.Release|x64.ActiveCfg = Release|x64

 		{17D1A1DA-6803-4AA1-A0DB-566E00D7593C}.Release|x64.Build.0 = Release|x64

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|Win32.ActiveCfg = Debug|Win32

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|Win32.Build.0 = Debug|Win32

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|x64.ActiveCfg = Debug|x64

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|x64.Build.0 = Debug|x64

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|Win32.ActiveCfg = Release|Win32

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|Win32.Build.0 = Release|Win32

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|x64.ActiveCfg = Release|x64

-		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|x64.Build.0 = Release|x64

 		{BE21679A-D26E-4A26-BC4F-382F57A33480}.Debug|Win32.ActiveCfg = Debug|Win32

 		{BE21679A-D26E-4A26-BC4F-382F57A33480}.Debug|Win32.Build.0 = Debug|Win32

 		{BE21679A-D26E-4A26-BC4F-382F57A33480}.Debug|x64.ActiveCfg = Debug|x64

@@ -292,6 +283,22 @@
 		{97A7EBB4-A76D-40CA-8E30-C10F2EB0B324}.Release|Win32.Build.0 = Release|Win32

 		{97A7EBB4-A76D-40CA-8E30-C10F2EB0B324}.Release|x64.ActiveCfg = Release|x64

 		{97A7EBB4-A76D-40CA-8E30-C10F2EB0B324}.Release|x64.Build.0 = Release|x64

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|Win32.ActiveCfg = Debug|Win32

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|Win32.Build.0 = Debug|Win32

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|x64.ActiveCfg = Debug|x64

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Debug|x64.Build.0 = Debug|x64

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|Win32.ActiveCfg = Release|Win32

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|Win32.Build.0 = Release|Win32

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|x64.ActiveCfg = Release|x64

+		{CFA36CC7-515C-4E18-8F8F-5B56AB903352}.Release|x64.Build.0 = Release|x64

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Debug|Win32.ActiveCfg = Debug|Win32

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Debug|Win32.Build.0 = Debug|Win32

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Debug|x64.ActiveCfg = Debug|x64

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Debug|x64.Build.0 = Debug|x64

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Release|Win32.ActiveCfg = Release|Win32

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Release|Win32.Build.0 = Release|Win32

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Release|x64.ActiveCfg = Release|x64

+		{316E338C-6DC1-4D11-81C1-91F20E92AB04}.Release|x64.Build.0 = Release|x64

 	EndGlobalSection

 	GlobalSection(SolutionProperties) = preSolution

 		HideSolutionNode = FALSE

diff --git a/visualc/VS2010/PolarSSL.vcxproj b/visualc/VS2010/PolarSSL.vcxproj
index c3dc709..26bac09 100644
--- a/visualc/VS2010/PolarSSL.vcxproj
+++ b/visualc/VS2010/PolarSSL.vcxproj
@@ -146,6 +146,7 @@
   <ItemGroup>

     <ClInclude Include="..\..\include\polarssl\aes.h" />

     <ClInclude Include="..\..\include\polarssl\arc4.h" />

+    <ClInclude Include="..\..\include\polarssl\asn1.h" />

     <ClInclude Include="..\..\include\polarssl\base64.h" />

     <ClInclude Include="..\..\include\polarssl\bignum.h" />

     <ClInclude Include="..\..\include\polarssl\bn_mul.h" />

@@ -157,6 +158,9 @@
     <ClInclude Include="..\..\include\polarssl\debug.h" />

     <ClInclude Include="..\..\include\polarssl\des.h" />

     <ClInclude Include="..\..\include\polarssl\dhm.h" />

+    <ClInclude Include="..\..\include\polarssl\entropy.h" />

+    <ClInclude Include="..\..\include\polarssl\entropy_poll.h" />

+    <ClInclude Include="..\..\include\polarssl\error.h" />

     <ClInclude Include="..\..\include\polarssl\havege.h" />

     <ClInclude Include="..\..\include\polarssl\md.h" />

     <ClInclude Include="..\..\include\polarssl\md2.h" />

@@ -181,15 +185,20 @@
   <ItemGroup>

     <ClCompile Include="..\..\library\aes.c" />

     <ClCompile Include="..\..\library\arc4.c" />

+    <ClCompile Include="..\..\library\asn1parse.c" />

     <ClCompile Include="..\..\library\base64.c" />

     <ClCompile Include="..\..\library\bignum.c" />

     <ClCompile Include="..\..\library\camellia.c" />

     <ClCompile Include="..\..\library\certs.c" />

     <ClCompile Include="..\..\library\cipher.c" />

     <ClCompile Include="..\..\library\cipher_wrap.c" />

+    <ClCompile Include="..\..\library\ctr_drbg.c" />

     <ClCompile Include="..\..\library\debug.c" />

     <ClCompile Include="..\..\library\des.c" />

     <ClCompile Include="..\..\library\dhm.c" />

+    <ClCompile Include="..\..\library\entropy.c" />

+    <ClCompile Include="..\..\library\entropy_poll.c" />

+    <ClCompile Include="..\..\library\error.c" />

     <ClCompile Include="..\..\library\havege.c" />

     <ClCompile Include="..\..\library\md.c" />

     <ClCompile Include="..\..\library\md2.c" />

diff --git a/visualc/VS2010/gen_random.vcxproj b/visualc/VS2010/gen_random_ctr_drbg.vcxproj
similarity index 97%
copy from visualc/VS2010/gen_random.vcxproj
copy to visualc/VS2010/gen_random_ctr_drbg.vcxproj
index 7ec76f1..7342850 100644
--- a/visualc/VS2010/gen_random.vcxproj
+++ b/visualc/VS2010/gen_random_ctr_drbg.vcxproj
@@ -19,7 +19,7 @@
     </ProjectConfiguration>

   </ItemGroup>

   <ItemGroup>

-    <ClCompile Include="..\..\programs\random\gen_random.c" />

+    <ClCompile Include="..\..\programs\random\gen_random_ctr_drbg.c" />

   </ItemGroup>

   <ItemGroup>

     <ProjectReference Include="PolarSSL.vcxproj">

@@ -27,9 +27,9 @@
     </ProjectReference>

   </ItemGroup>

   <PropertyGroup Label="Globals">

-    <ProjectGuid>{CFA36CC7-515C-4E18-8F8F-5B56AB903352}</ProjectGuid>

+    <ProjectGuid>{316E338C-6DC1-4D11-81C1-91F20E92AB04}</ProjectGuid>

     <Keyword>Win32Proj</Keyword>

-    <RootNamespace>gen_random</RootNamespace>

+    <RootNamespace>gen_random_ctr_drbg</RootNamespace>

   </PropertyGroup>

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

   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

diff --git a/visualc/VS2010/gen_random.vcxproj b/visualc/VS2010/gen_random_havege.vcxproj
similarity index 98%
rename from visualc/VS2010/gen_random.vcxproj
rename to visualc/VS2010/gen_random_havege.vcxproj
index 7ec76f1..0c47375 100644
--- a/visualc/VS2010/gen_random.vcxproj
+++ b/visualc/VS2010/gen_random_havege.vcxproj
@@ -19,7 +19,7 @@
     </ProjectConfiguration>

   </ItemGroup>

   <ItemGroup>

-    <ClCompile Include="..\..\programs\random\gen_random.c" />

+    <ClCompile Include="..\..\programs\random\gen_random_havege.c" />

   </ItemGroup>

   <ItemGroup>

     <ProjectReference Include="PolarSSL.vcxproj">

@@ -29,7 +29,7 @@
   <PropertyGroup Label="Globals">

     <ProjectGuid>{CFA36CC7-515C-4E18-8F8F-5B56AB903352}</ProjectGuid>

     <Keyword>Win32Proj</Keyword>

-    <RootNamespace>gen_random</RootNamespace>

+    <RootNamespace>gen_random_havege</RootNamespace>

   </PropertyGroup>

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

   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

@@ -166,4 +166,4 @@
   <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

   <ImportGroup Label="ExtensionTargets">

   </ImportGroup>

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