-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#pragma once | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
#include <aws/crt/Exports.h> | ||
|
||
namespace Aws | ||
{ | ||
namespace Crt | ||
{ | ||
|
||
namespace dns | ||
{ | ||
AWS_CRT_CPP_API bool IsValidIpV6(const char *host, bool is_uri_encoded); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
|
||
#include <aws/crt/dns.h> | ||
#include <aws/common/host_utils.h> | ||
#include <aws/crt/Types.h> | ||
|
||
namespace Aws | ||
{ | ||
namespace Crt | ||
{ | ||
namespace dns | ||
{ | ||
bool IsValidIpV6(const char *host, bool is_uri_encoded) | ||
{ | ||
return aws_host_utils_is_ipv6(Aws::Crt::ByteCursorFromCString(host), is_uri_encoded); | ||
} | ||
} | ||
} | ||
} |