Skip to content

Commit 7205a59

Browse files
committed
Adding missing crypt32.lib and fixing a couple more warnings.
1 parent 3404a39 commit 7205a59

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

Release/include/cpprest/web_utilities.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ class credentials
9898
#if defined(_MS_WINDOWS)
9999
, m_password(password)
100100
#endif
101-
{}
101+
{
102+
// Avoid unreferenced parameter warning.
103+
password;
104+
}
102105

103106
/// <summary>
104107
/// The user name associated with the credentials.

Release/src/build/vs11.winrt/casablanca110.winrt.vcxproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
43
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.root))\Build\version.props" />
54
<PropertyGroup Label="Globals">
65
<ProjectGuid>{198ED804-2655-4D92-8104-C220E3EA9452}</ProjectGuid>
76
<Keyword>Win32Proj</Keyword>
8-
<RootNamespace>casablanca</RootNamespace>
97
<DefaultLanguage>en-US</DefaultLanguage>
108
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
119
<SccProjectName>SAK</SccProjectName>

Release/src/build/vs11.xp/casablanca110.xp.vcxproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<PropertyGroup Label="Globals">
55
<ProjectGuid>{4D9ED383-673B-4E48-A6AF-6BD9F108150E}</ProjectGuid>
66
<Keyword>Win32Proj</Keyword>
7-
<RootNamespace>casablanca</RootNamespace>
87
<SccProjectName>SAK</SccProjectName>
98
<SccAuxPath>SAK</SccAuxPath>
109
<SccLocalPath>SAK</SccLocalPath>
@@ -51,7 +50,7 @@
5150
<AdditionalOptions>-Zm160 /bigobj %(AdditionalOptions)</AdditionalOptions>
5251
</ClCompile>
5352
<Link>
54-
<AdditionalDependencies>Kernel32.lib;Winhttp.lib;httpapi.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
53+
<AdditionalDependencies>Kernel32.lib;Winhttp.lib;httpapi.lib;crypt32.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
5554
</Link>
5655
</ItemDefinitionGroup>
5756
<Import Project="../sources.proj" />

Release/src/build/vs11/casablanca110.vcxproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<PropertyGroup Label="Globals">
55
<ProjectGuid>{90D85FF4-F0AE-4816-923F-0EF2758F30AB}</ProjectGuid>
66
<Keyword>Win32Proj</Keyword>
7-
<RootNamespace>casablanca</RootNamespace>
87
<SccProjectName>SAK</SccProjectName>
98
<SccAuxPath>SAK</SccAuxPath>
109
<SccLocalPath>SAK</SccLocalPath>
@@ -42,14 +41,14 @@
4241
</ItemGroup>
4342
<ItemDefinitionGroup>
4443
<ClCompile>
45-
<PreprocessorDefinitions>_ASYNCRT_EXPORT;AZURESTORAGESERVICES_EXPORTS;_PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
44+
<PreprocessorDefinitions>_ASYNCRT_EXPORT;_PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
4645
<AdditionalIncludeDirectories>$(CasablancaIncludeDir);$(CasablancaSrcDir)\pch;$(WebsocketppIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
4746
<PrecompiledHeader>Use</PrecompiledHeader>
4847
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>
4948
<AdditionalOptions>-Zm160 /bigobj%(AdditionalOptions)</AdditionalOptions>
5049
</ClCompile>
5150
<Link>
52-
<AdditionalDependencies>Winhttp.lib;httpapi.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies>
51+
<AdditionalDependencies>Winhttp.lib;httpapi.lib;bcrypt.lib;crypt32.lib;%(AdditionalDependencies)</AdditionalDependencies>
5352
</Link>
5453
</ItemDefinitionGroup>
5554
<Import Project="../sources.proj" />

Release/src/build/vs12.xp/casablanca120.xp.vcxproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<PropertyGroup Label="Globals">
55
<ProjectGuid>{15F3B200-1AED-4B57-AF37-B21CD67914B1}</ProjectGuid>
66
<Keyword>Win32Proj</Keyword>
7-
<RootNamespace>casablanca</RootNamespace>
87
<SccProjectName>SAK</SccProjectName>
98
<SccAuxPath>SAK</SccAuxPath>
109
<SccLocalPath>SAK</SccLocalPath>
@@ -41,7 +40,7 @@
4140
</ItemGroup>
4241
<ItemDefinitionGroup>
4342
<ClCompile>
44-
<PreprocessorDefinitions>CPPREST_TARGET_XP;_ASYNCRT_EXPORT;AZURESTORAGESERVICES_EXPORTS;_PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
43+
<PreprocessorDefinitions>CPPREST_TARGET_XP;_ASYNCRT_EXPORT;_PPLX_EXPORT;WIN32;_MBCS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
4544
<AdditionalIncludeDirectories>$(CasablancaIncludeDir);$(CasablancaSrcDir)\pch;$(WebsocketppIncludeDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
4645
<PrecompiledHeader>Use</PrecompiledHeader>
4746
<PrecompiledHeaderFile>stdafx.h</PrecompiledHeaderFile>

Release/src/utilities/web_utilities.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include <robuffer.h>
3434
#endif
3535

36-
#include "cpprest\web_utilities.h"
36+
#include "cpprest/web_utilities.h"
3737

3838
namespace web
3939
{
@@ -60,7 +60,7 @@ winrt_encryption::winrt_encryption(const std::wstring &data)
6060
// Create buffer containing plain text password.
6161
Platform::ArrayReference<unsigned char> arrayref(
6262
reinterpret_cast<unsigned char *>(const_cast<std::wstring::value_type *>(data.c_str())),
63-
data.size() * sizeof(std::wstring::value_type));
63+
static_cast<unsigned int>(data.size()) * sizeof(std::wstring::value_type));
6464
Windows::Storage::Streams::IBuffer ^plaintext = Windows::Security::Cryptography::CryptographicBuffer::CreateFromByteArray(arrayref);
6565
m_buffer = pplx::create_task(provider->ProtectAsync(plaintext));
6666
m_buffer.then([plaintext](pplx::task<Windows::Storage::Streams::IBuffer ^>)

0 commit comments

Comments
 (0)