Commit Graph

110 Commits

Author SHA1 Message Date
Ahson Khan
fb33402844
Remove Base64 encode and decode methods from Azure::Storage and move the string-based helper to Internal. Update storage call sites. (#1298)
Follow up from https://github.com/Azure/azure-sdk-for-cpp/pull/1297 as the second step to fix #1020
2021-01-09 08:12:06 +00:00
Ahson Khan
1efbfb3056
Add Base64 encoding and decoding utility APIs to the Azure::Core namespace available from azure/core/base64.hpp. (#1297)
* Add Base64 encode and decode APIs to Azure::Core (from Azure::Storage).

* Revert changes to crypt.hpp to leave callsite updates for auto-gen
storage component for later.

* Add entry to changelog.

* Add basic unit tests.

* Remove definition of NOMINMAX since it is unnecessary.

* Include missing header from openssl.

* Include missing open ssl buffer header.

* Address feedback around angle brackets, and move implementation into a
namespace block.

* Remove redundant namespace qualifier in the signature.

* Link openssl to azure-core for non-Windows platforms, to fix the MacOS
linking issue.
2021-01-08 21:20:44 -08:00
Rick Winter
36fbcd9cee
Version strings (#1276)
Moves package version strings in the details namespace.
Fixes #1249 

# Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/master/CONTRIBUTING.md#pull-requests).

- [x] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html)
- [x] Doxygen docs
- [x] Unit tests
- [x] No unwanted commits/changes
- [x] Descriptive title/description
  - [x] PR is single purpose
  - [x] Related issue listed
- [x] Comments in source
- [x] No typos
- [x] Update changelog
- [x] Not work-in-progress
- [x] External references or docs updated
- [x] Self review of PR done
- [x] Any breaking changes?
2021-01-07 08:07:46 +00:00
Victor Vazquez
9d9f1e6f4c
remove cancellation check from retry policies (#1196)
* remove cancellation check from retry policies

* Update BodyStream to do cancellation check on Read
2021-01-05 18:38:06 -08:00
Victor Vazquez
e141cf1a6b
Update canceled to cancelled (#1256)
* rename all `canceled` to `cancelled`

* Adding changelog breaking changes
2021-01-05 16:28:05 -08:00
Kan Tang
fb869f10af
Resolves the leap year last day calculation issue. (#1254) 2021-01-05 09:45:21 +08:00
ku-sourav
14e947ff03
Throw exception if curl_easy_init returns Null (#1239) 2020-12-22 14:23:29 -08:00
Anton Kolesnyk
bdc2931855
Token: use DateTime (#1221) 2020-12-18 19:10:54 -08:00
Anton Kolesnyk
e3d8719281
Fix gtest and related warnings (#1224) 2020-12-18 18:20:02 -08:00
Victor Vazquez
1502468dba
Reuse connection pool depending on host and connection options (#1189)
* Reuse connection pool depending on host and connection options
2020-12-18 17:27:47 -08:00
Victor Vazquez
8aac9091c2
Mention min clang format version and format all cpp and hpp files with clang-format version 9.0 (#1208)
* Add info about clang-format version

* updates for cpp and hpp format

* special cases
2020-12-17 18:34:23 -08:00
Victor Vazquez
6a317e8b87
Move the default transport adapter assignation to the source (#1206)
fixes: #1169
2020-12-18 02:13:03 +00:00
Victor Vazquez
942c6aaffa
replace ifdef for if defined (#1199)
fixes: #1057
2020-12-17 22:57:40 +00:00
Rick Winter
bcb684f95e
Add Operation<T> (#1186)
* Add Operation<T>
2020-12-17 14:47:20 -08:00
Victor Vazquez
dacd6aa6c1
Added HTTP Range (#1188)
* Added HTTP Rangeom>
2020-12-16 14:27:17 -08:00
Victor Vazquez
fc7d52926a
init fields to avoid MSVC warning (#1172)
Fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/922
2020-12-15 22:21:24 +00:00
Victor Vazquez
8cd93803c4
Remove libcurl non required options (#1153)
Fixes: https://github.com/azure/azure-sdk-for-cpp/issues/931
2020-12-15 22:08:48 +00:00
Ahson Khan
f2394ddb02
Following the guidelines, use quotes for files within the same project, and angle brackets for external dependencies. (#1150) 2020-12-11 14:04:59 -08:00
Anton Kolesnyk
3eae7c130c
Add VcPkg support (#1013) 2020-12-11 11:53:37 -08:00
Ahson Khan
0f854ffa9b
Add WinHTTP Transport support to the SDK for windows clients as another HTTP Transport. (#897)
Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/354
2020-12-10 22:00:52 +00:00
Anton Kolesnyk
035ba8509c
Move BearerTokenAuthenticationPolicy to Http namespace/policy.hpp (#1104) 2020-12-08 17:04:03 -08:00
Anton Kolesnyk
ce98087f7e
Don't use WINDOWS/POSIX/NOMINMAX macros defined in cmake, move them to source code instead (#1070) 2020-12-04 11:55:59 -08:00
Anton Kolesnyk
7d6d3dbf8f
Make SDK buildable in VS 2017 (#1078) 2020-12-03 19:16:18 -08:00
Victor Vazquez
3822ca8729
use private as suffix for private headers (#1040)
fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/1039

Adding `private` suffix for private headers.

Updating core test CMake script to include the /src folder from CORE to expose the private headers to the tests. Then tests don't need to do relative-path includes.
2020-12-03 01:16:46 +00:00
Victor Vazquez
cc75233a54
Remove curl transport adapter models and private headers form public layer (#1023) 2020-11-30 15:54:21 -08:00
Anton Kolesnyk
56475b003a
DateTime: API review feedback (#938) 2020-11-12 01:48:00 +00:00
Victor Vazquez
4b4e8ba7ea
Adding datetime format decimal and no decimal (#936)
* revert change to xmlsoft link

* remove link

* Add DateFormat::Iso8601WithDecimals and DateFormat::Iso8601WithNoDecimals

* changelog

* add ToISO8601String with TimeFractionFormat

* update the name and add extra test
2020-11-09 17:50:05 -08:00
Victor Vazquez
c0ad020856
remove commented code (#933)
fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/930
2020-11-10 00:12:12 +00:00
Victor Vazquez
742e385350
Adding options for telemetry and transport policy (#889)
Fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/819
2020-11-07 01:01:03 +00:00
Victor Vazquez
b1e08f713b
create error string only if there is an error and not before (#912) 2020-11-06 11:57:11 -08:00
Victor Vazquez
4b2e335d35
Add GetPort to URL (#904)
* Add GetPort to URL
2020-11-05 16:01:08 -08:00
Victor Vazquez
7962546009
curl transport adapter options (#885) 2020-11-04 18:06:09 -08:00
Victor Vazquez
0676f788c3
remove throw from NextPolicy (#877)
Update NextPolicy to that a reference instead of a pointer to the policies vector.
This way we don't need to check if the pointer is null.

Then, handle the case were no transport adapter was found

fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/874
2020-11-04 17:03:35 +00:00
Victor Vazquez
75c3f85ca6
handle server chunked response without number (#881) 2020-10-30 01:11:41 -07:00
Victor Vazquez
1fa314f19e
Refactor curl connection for mocking (#869)
* split curl headers

* curl transport refactoring for curl mocking support tests
2020-10-29 23:44:06 -07:00
Victor Vazquez
36ea25db7f
Do not reuse a connection that fail while uploading (#863) 2020-10-28 01:27:23 -07:00
Victor Vazquez
9d47db1d4a
Add RequestFailedException (#717)
* Add RequestFailedException
2020-10-20 22:22:02 -07:00
Victor Vazquez
e1dddce239
remove azure hpp (#809)
Remove Azure.hpp

Make Azure/Core/Strings.hpp public

Move ToLower and InvariantIsEqual to Strings.hpp

Also removing `AZURE_UNREFERENCED_PARAMETER`  

fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/811
2020-10-20 18:08:58 +00:00
Anton Kolesnyk
a1385518a2
DateTime: Allow dates from 1601 to 1900 (#799)
Closes #769.
2020-10-17 02:05:05 +00:00
Victor Vazquez
fda43987e4
removing log member from curl session (#789)
Remove the m_logger member from curl session and use logger directly from static logger in application
2020-10-16 00:45:52 +00:00
Victor Vazquez
d4ff61919f
Prevent transport adapter to keep pulling for data on a closed connection (#780)
* thow if connection is closed when reading response

* improve comment

* format
2020-10-14 19:18:43 -07:00
Victor Vazquez
724e6ca512
Make waiting for socket cancelable (#719)
* Make waiting for socket cancelable
2020-10-14 16:55:04 -07:00
Anton Kolesnyk
a38de03e7b
Extract part of credentials to Identity module (#748) 2020-10-13 07:33:18 -07:00
Victor Vazquez
9eb132249b
Url use url encoded queries (#730)
* keep url-encoded queries
2020-10-12 09:39:46 -07:00
Anton Kolesnyk
6ae0c0daac
Add DateTime: supporting standardized string date and time representations. (#718) 2020-10-09 19:13:48 -07:00
Victor Vazquez
2cc4ecdea8
Validate invalid HTTP headers (#703)
Creating new function to insert headers by validating characters on it are accepted chars for header name
fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/191
2020-10-09 23:35:58 +00:00
Victor Vazquez
190a0e80b1
fixing typos from #686 (#704)
Follow up from #686 to address PR comments about typos
2020-10-06 23:10:42 +00:00
Victor Vazquez
7c32578798
Perf fix windows (#686)
* sample for repro

* adding repro app

* reset win socket for perf windows
2020-09-29 11:37:31 -07:00
Rick Winter
d867d7e8ad
Standardize header includes (#685)
* Standardize header includes

Update sources to match guidelines

- `#include ""` when file is relative to the project
- `#include <>` when file is external to the project

Updated tests to mirror how a customer will include the header

- `#include <>`
2020-09-25 10:56:06 -07:00
Victor Vazquez
fdcb150621
Replace select for epoll (#676)
* adding poll instead of select

* Windows support for polling

* fix for define check
2020-09-22 16:24:26 -07:00