forked from microsoft/cpprestsdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary formatting changes to reduce diff - introduced dur…
…ing merge due to auto format extension
- Loading branch information
Showing
6 changed files
with
332 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,45 @@ | ||
/*** | ||
* ==++== | ||
* | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* ==--== | ||
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | ||
* | ||
* Certificate info | ||
* | ||
* For the latest on this and related APIs, please see: https://github.com/Microsoft/cpprestsdk | ||
* | ||
* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | ||
****/ | ||
* Copyright (C) Microsoft. All rights reserved. | ||
* Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. | ||
* | ||
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ | ||
* | ||
* Certificate info | ||
* | ||
* For the latest on this and related APIs, please see: https://github.com/Microsoft/cpprestsdk | ||
* | ||
* =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | ||
****/ | ||
|
||
#pragma once | ||
|
||
#include <vector> | ||
#include <string> | ||
#include <vector> | ||
|
||
namespace web { namespace http { namespace client { | ||
|
||
using CertificateChain = std::vector<std::vector<unsigned char>>; | ||
|
||
struct certificate_info | ||
namespace web | ||
{ | ||
namespace http | ||
{ | ||
namespace client | ||
{ | ||
using CertificateChain = std::vector<std::vector<unsigned char>>; | ||
|
||
struct certificate_info | ||
{ | ||
std::string host_name; | ||
CertificateChain certificate_chain; | ||
long certificate_error {0}; | ||
bool verified {false}; | ||
|
||
certificate_info(const std::string host) : host_name(host) { } | ||
certificate_info(const std::string host, CertificateChain chain, long error = 0) | ||
: host_name(host), certificate_chain(chain), certificate_error(error) | ||
{ | ||
std::string host_name; | ||
CertificateChain certificate_chain; | ||
long certificate_error{ 0 }; | ||
bool verified{ false }; | ||
|
||
certificate_info(const std::string host) : host_name(host) {} | ||
certificate_info(const std::string host, CertificateChain chain, long error = 0) : host_name(host), certificate_chain(chain), certificate_error(error) {} | ||
}; | ||
} | ||
}; | ||
|
||
using CertificateChainFunction = std::function<bool(const std::shared_ptr<certificate_info> certificate_Info)>; | ||
using CertificateChainFunction = std::function<bool(const std::shared_ptr<certificate_info> certificate_Info)>; | ||
|
||
}}} | ||
} // namespace client | ||
} // namespace http | ||
} // namespace web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.