Skip to content

Commit 83ee1d3

Browse files
committed
Merge branch 'development' of https://git01.codeplex.com/casablanca into remove_apple_stack
2 parents f03a037 + 7e54f7c commit 83ee1d3

13 files changed

+250
-209
lines changed

Release/include/cpprest/x509_cert_utilities.h

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/***
22
* ==++==
33
*
4-
* Copyright (c) Microsoft Corporation. All rights reserved.
4+
* Copyright (c) Microsoft Corporation. All rights reserved.
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
77
* You may obtain a copy of the License at
@@ -18,7 +18,7 @@
1818
*
1919
* x509_cert_utilities.h
2020
*
21-
* Contains utility functions for helping to verify server certificates in OS X/iOS.
21+
* Contains utility functions for helping to verify server certificates in OS X/iOS and Android.
2222
*
2323
* For the latest on this and related APIs, please see http://casablanca.codeplex.com.
2424
*
@@ -30,8 +30,23 @@
3030
#include <vector>
3131
#include <string>
3232

33+
#if defined(__APPLE__) || defined(ANDROID)
34+
35+
#include <boost/asio/ssl.hpp>
36+
3337
namespace web { namespace http { namespace client { namespace details {
3438

39+
/// <summary>
40+
/// Using platform specific APIs verifies server certificate.
41+
/// Currently implemented to work on iOS, Android, and OS X.
42+
/// </summary>
43+
/// <param name="verifyCtx">Boost.ASIO context get certificate chain from.</param>
44+
/// <param name="hostName">Host name from the URI.</param>
45+
/// <returns>True if verification passed and server can be trusted, false otherwise.</returns>
46+
bool verify_cert_chain_platform_specific(boost::asio::ssl::verify_context &verifyCtx, const std::string &hostName);
47+
3548
bool verify_X509_cert_chain(const std::vector<std::string> &certChain, const std::string &hostName);
3649

3750
}}}}
51+
52+
#endif

Release/samples/BlackJack/BlackJack_UIClient/BlackJack_UIClient120.vcxproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</ItemDefinitionGroup>
110110
<PropertyGroup>
111111
<OutDir>$(OutDir)\$(MSBuildProjectName)\</OutDir>
112-
<PackageCertificateThumbprint>5C945ED108BF1723994A90F9BAA4B7D93FBE0E47</PackageCertificateThumbprint>
112+
<PackageCertificateThumbprint>F21E91BD711D606106CD99CE5C2E090FD822956F</PackageCertificateThumbprint>
113113
</PropertyGroup>
114114
<ItemGroup>
115115
<ClInclude Include="CardShape.xaml.h">
@@ -141,6 +141,7 @@
141141
<AppxManifest Include="Package120.appxmanifest">
142142
<SubType>Designer</SubType>
143143
</AppxManifest>
144+
<None Include="BlackJack_UIClient120_TemporaryKey.pfx" />
144145
<None Include="BlackJack_UIClient_TemporaryKey.pfx" />
145146
</ItemGroup>
146147
<ItemGroup>
Binary file not shown.

Release/samples/BlackJack/BlackJack_UIClient/Package120.appxmanifest

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
3-
<Identity Name="64521d51-da30-445f-ba7b-d79f27cf8c7c" Publisher="CN=Microsoft Corporation" Version="1.0.0.0" />
2+
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
3+
<Identity Name="64521d51-da30-445f-ba7b-d79f27cf8c7c" Publisher="CN=stgates" Version="1.0.0.0" />
44
<Properties>
55
<DisplayName>Blackjack Client</DisplayName>
66
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
@@ -15,10 +15,14 @@
1515
</Resources>
1616
<Applications>
1717
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Blackjack_Client.App">
18-
<VisualElements DisplayName="Blackjack Client" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="Blackjack Client" ForegroundText="light" BackgroundColor="#464646">
19-
<DefaultTile ShowName="allLogos" />
20-
<SplashScreen Image="Assets\SplashScreen.png" BackgroundColor="#008024" />
21-
</VisualElements>
18+
<m2:VisualElements DisplayName="Blackjack Client" Description="Blackjack Client" BackgroundColor="#464646" ForegroundText="light" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png">
19+
<m2:DefaultTile>
20+
<m2:ShowNameOnTiles>
21+
<m2:ShowOn Tile="square150x150Logo" />
22+
</m2:ShowNameOnTiles>
23+
</m2:DefaultTile>
24+
<m2:SplashScreen BackgroundColor="#008024" Image="Assets\SplashScreen.png" />
25+
</m2:VisualElements>
2226
</Application>
2327
</Applications>
2428
<Capabilities>

Release/samples/FacebookDemo/FacebookDemo120.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
</PropertyGroup>
7979
<PropertyGroup>
8080
<OutDir>$(OutDir)\$(MSBuildProjectName)\</OutDir>
81+
<PackageCertificateThumbprint>A2EB87D9E8F458456834BA935C38BCD7C389022E</PackageCertificateThumbprint>
8182
</PropertyGroup>
8283
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
8384
<ClCompile>
@@ -146,6 +147,7 @@
146147
<AppxManifest Include="Package120.appxmanifest">
147148
<SubType>Designer</SubType>
148149
</AppxManifest>
150+
<None Include="FacebookDemo120_TemporaryKey.pfx" />
149151
<None Include="FacebookDemo_TemporaryKey.pfx" />
150152
</ItemGroup>
151153
<ItemGroup>
Binary file not shown.

Release/samples/FacebookDemo/Package120.appxmanifest

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,28 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
3-
4-
<Identity Name="2b173277-f2a9-4af1-905b-0da25a731def"
5-
Publisher="CN=Andy"
6-
Version="1.0.0.0" />
7-
2+
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
3+
<Identity Name="2b173277-f2a9-4af1-905b-0da25a731def" Publisher="CN=stgates" Version="1.0.0.0" />
84
<Properties>
95
<DisplayName>FacebookDemo</DisplayName>
106
<PublisherDisplayName>Andy</PublisherDisplayName>
117
<Logo>Assets\StoreLogo.png</Logo>
128
</Properties>
13-
149
<Prerequisites>
1510
<OSMinVersion>6.2.1</OSMinVersion>
1611
<OSMaxVersionTested>6.2.1</OSMaxVersionTested>
1712
</Prerequisites>
18-
1913
<Resources>
20-
<Resource Language="x-generate"/>
14+
<Resource Language="x-generate" />
2115
</Resources>
22-
2316
<Applications>
24-
<Application Id="App"
25-
Executable="$targetnametoken$.exe"
26-
EntryPoint="FacebookDemo.App">
27-
<VisualElements
28-
DisplayName="FacebookDemo"
29-
Logo="Assets\Logo.png"
30-
SmallLogo="Assets\SmallLogo.png"
31-
Description="FacebookDemo"
32-
ForegroundText="light"
33-
BackgroundColor="#464646">
34-
<DefaultTile ShowName="allLogos" />
35-
<SplashScreen Image="Assets\SplashScreen.png" />
36-
</VisualElements>
17+
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="FacebookDemo.App">
18+
<m2:VisualElements DisplayName="FacebookDemo" Description="FacebookDemo" BackgroundColor="#464646" ForegroundText="light" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png">
19+
<m2:DefaultTile>
20+
<m2:ShowNameOnTiles>
21+
<m2:ShowOn Tile="square150x150Logo" />
22+
</m2:ShowNameOnTiles>
23+
</m2:DefaultTile>
24+
<m2:SplashScreen Image="Assets\SplashScreen.png" />
25+
</m2:VisualElements>
3726
</Application>
3827
</Applications>
3928
<Capabilities>

Release/samples/WindowsLiveAuth/Package120.appxmanifest

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,28 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
3-
4-
<Identity Name="64521d51-da30-445f-ba7b-d79f27cf8c7c"
5-
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
6-
Version="1.0.0.0" />
7-
2+
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest">
3+
<Identity Name="64521d51-da30-445f-ba7b-d79f27cf8c7c" Publisher="CN=stgates" Version="1.0.0.0" />
84
<Properties>
95
<DisplayName>WindowsLiveAuth</DisplayName>
106
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
117
<Logo>Assets\StoreLogo.png</Logo>
128
</Properties>
13-
149
<Prerequisites>
1510
<OSMinVersion>6.2.1</OSMinVersion>
1611
<OSMaxVersionTested>6.2.1</OSMaxVersionTested>
1712
</Prerequisites>
18-
1913
<Resources>
20-
<Resource Language="x-generate"/>
14+
<Resource Language="x-generate" />
2115
</Resources>
22-
2316
<Applications>
24-
<Application Id="App"
25-
Executable="$targetnametoken$.exe"
26-
EntryPoint="WindowsLiveAuth.App">
27-
<VisualElements
28-
DisplayName="WindowsLiveAuth"
29-
Logo="Assets\Logo.png"
30-
SmallLogo="Assets\SmallLogo.png"
31-
Description="WindowsLiveAuth"
32-
ForegroundText="light"
33-
BackgroundColor="#464646">
34-
<DefaultTile ShowName="allLogos" />
35-
<SplashScreen Image="Assets\SplashScreen.png" />
36-
</VisualElements>
17+
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="WindowsLiveAuth.App">
18+
<m2:VisualElements DisplayName="WindowsLiveAuth" Description="WindowsLiveAuth" BackgroundColor="#464646" ForegroundText="light" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png">
19+
<m2:DefaultTile>
20+
<m2:ShowNameOnTiles>
21+
<m2:ShowOn Tile="square150x150Logo" />
22+
</m2:ShowNameOnTiles>
23+
</m2:DefaultTile>
24+
<m2:SplashScreen Image="Assets\SplashScreen.png" />
25+
</m2:VisualElements>
3726
</Application>
3827
</Applications>
3928
<Capabilities>

Release/samples/WindowsLiveAuth/WindowsLiveAuth120.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@
128128
</PropertyGroup>
129129
<PropertyGroup>
130130
<PackageCertificateKeyFile>WindowsLiveAuth_TemporaryKey.pfx</PackageCertificateKeyFile>
131+
<PackageCertificateThumbprint>D3342DAE1EC703934903364490A80C5BB06C929A</PackageCertificateThumbprint>
131132
</PropertyGroup>
132133
<ItemGroup>
133134
<ClInclude Include="live_connect.h" />
Binary file not shown.

0 commit comments

Comments
 (0)