* Update changelog for Clang 11 comunity contribution
* Move to correct place, arrange in correct order
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
With clang 11, the build fails with:
```
azure-sdk-for-cpp/sdk/core/azure-core/inc/azure/core/datetime.hpp:285:14: error: no viable conversion from returned value of type 'time_point<Azure::_detail::Clock, typename common_type<duration<long, ratio<1, 10000000> >, duration<long long, ratio<1, 1> > >::type>' (aka 'time_point<Azure::_detail::Clock, duration<long long, ratio<__static_gcd<ratio<1, 10000000>::num, ratio<1, 1>::num>::value, __static_lcm<ratio<1, 10000000>::den, ratio<1, 1>::den>::value> > >') to function return type 'Azure::DateTime'
return DateTime(1970) + std::chrono::seconds(posixTime);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
* Make WinHTTP transport adapter to NOT use SSL/TLS for unsecured HTTP connections
* Update changelog for identity as well
* LocaleInvariantCaseInsensitiveEqual + micro-optimization to avoid creating&allocating std::string each time
* Update sdk/identity/azure-identity/CHANGELOG.md
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
* Progress stream reader
* format
* Update sdk/core/azure-core/src/io/body_stream.cpp
Co-authored-by: JinmingHu <jinmhu@microsoft.com>
* PR comments
* remove
* one more comment
* replaced if null with azure_assert
* moved from pointer to reference
* first pass
* src builds
* new line
* huzaaaaa
* readme
* strating point
* get progress, need to deserialize now
* serializer
* some more
* tests
* more tests
* some refactor
* start
* comment and formatting
* working again
* couple of updates
* clang
* remove pedantic ;
* include
* pr comments
* clang format
* trigger
* trigger 2
* PR comments
* name value swap
Co-authored-by: JinmingHu <jinmhu@microsoft.com>
* Move the SHA256, 384, and 512 Hash implementations to be internal.
* Update changelog and add back missing file.
* Rename SHA256 and others to Sha256Hash and update header name.
* Fix up path in CMakeList by removing quotes.
* Rename the sha.cpp source file to match header.
* Move Sha256Hash and other Hash algorithm types from KeyVault to
Azure::Core.
* Reorder src file in cmakelist to be alpha order just to reset CI
* Revert "Reorder src file in cmakelist to be alpha order just to reset CI"
This reverts commit 6729cf311af76bb8388738cc519ea40092bc362c.
* Put dependency versions
* Update version
* Core does not have any 1.1 functionality
* Core 1.1
* 1.1.0
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
* Use TCP fast open and false start to reduce RTT from 3 to 1, when using WinHttp on latest Windows OS.
* Address PR feedback - Remove logging the error.
* first UT
* formatting
* unused error
* putenv
* some refactoring
* formatting
* casting
* again
* Update sdk/core/azure-core/test/ut/environmentLogLevelListener_test.cpp
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
* some refactoring
* more tests
* format
* no env test
* put back missing empty line
* Update sdk/core/azure-core/test/ut/environmentLogLevelListener_test.cpp
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
* PR comments
* fix signed/unsigned mismatch that causes ci build to fail
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
* vcpkg.json -- update all links to point to "main" .. This is hardcoded and will go out in future releases.
* ci.yml -- add `- main` to trigger criteria near `- master` ... This adds forward compatilbitiy when we rename the branch in the repo
* archetype-cpp-release.yml use a script which evaluates a repo's default branch and sets that in a global variable, then use that variable instead. When vcpkg updates their branch the publishing scripts will work transparently.
* Collect-Changelogs.ps1 -- Add default hardcoded branch name for use with future releases. This can be optionally overridden with a parameter when invoking the script.
* eng/pipelines/client.yml -- Delete this file. It is no longer in use.
* Update Azure Core Changelog for the upcoming GA release.
* update version
* Add a bug fix section.
* Update CHANGELOG.md
Co-authored-by: Victor Vazquez <vhvb1989@gmail.com>
* Docs: link to root Getting Started section from Core's readme
* Update sdk/core/azure-core/README.md
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
* update docs from classes
* remove more link from classes part II
* http docs
* Update sdk/core/azure-core/inc/azure/core/http/http.hpp
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
* Update cmake-modules/AzureDoxygen.cmake
* doc updates
* update RFC
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
* Add argument validation to public APIs.
* Add exception to spell check.
* Revert "Add exception to spell check."
This reverts commit be54b614cc1427ddb2f154f5927f4e612a4a1e28.
* Turn invalid arg excetion to a precondition assert for bodystream read.
* User assert in more places within body_stream.
* Update valiation for hashing and bodystream and update tests.
* Update precondition test for size_t and add null ptr check
* Fix clang formatting.
* Update changelog and fix up the message for size_t validation in hash.
* Address PR feedback.
* More PR feedback.
* Remove unnecessary comment from test.
* Fix clang format.
* Use size_t for buffers representing data in memory rather than int64_t.
* add a cast from size_t to int64_t
* Address feedback - OnRead return size_t.
* Change Read and ReadToCount to return size_t instead of int64_t.
* Update curl usage and ReadFromSocket.
* Missed one signature.
* Update changelog.
* Update transport layer to use the right size_t size.
* Fix curl use of MBS.
* Cast to size_t since that's all memory stream supprts.
* Add static casts to size_t as temporary workarounds.
* update storage tests.
* More test fixes.
* copy constructor for RequestFailedException
* Apply suggestions from code review
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
Co-authored-by: Victor Vazquez <victor.vazquez@microsoft.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
* Avoid using WinHttpQueryDataAvailable, and use WinHttpReadData directly for better throughput.
* Add back new line at end of file.
* Reorder some lines for readability.
Part of https://github.com/Azure/azure-sdk-for-cpp/issues/1277, checking what types of warnings the CI emits.
Verified all SDK product `.cpp`, `.hpp`, `.txt`, and `.md` files, primarily focused on azure-core. They are all clean now. There are some exceptions that needs to be added for keyvault and storage, but they are false positives, so not a concern.
> `cspell lint --config .vscode/cspell.json *.hpp */**/*.hpp`
CSpell: Files checked: 188, Issues found: 0 in 0 files
> `cspell lint --config .vscode/cspell.json *.cpp */**/*.cpp`
CSpell: Files checked: 186, Issues found: 88 in 15 files (keyvault and storage false positives, or tests)
> `cspell lint --config .vscode/cspell.json *.md */**/*.md`
CSpell: Files checked: 45, Issues found: 5 in 2 files (eng/common)
> `cspell lint --config .vscode/cspell.json *.txt */**/*.txt`
CSpell: Files checked: 44, Issues found: 0 in 0 files
> `cspell lint --config .vscode/cspell.json *.* */**/*`
CSpell: Files checked: 646, Issues found: 328 in 69 files (most of these are in eng\docs\api\assets\style.css or eng/common)
Deprioritize and ignored the errors from the test files (including test resource json files), and `eng/common` since those need to be centrally fixed.
* Removed the `Azure::Core::Http::Request` ctor overload that takes both a `bodyStream` and a `bufferedDownload` boolean since it is not used anywhere.
* Add back the unit tests by making them friends.
* Add back line at end of file.
* Check for context cancellation in more places within the winhttp transport layer before each I/O call.
* Update cspell to add exceptions to false positives.
* Address PR feedback.
* Do not check for context cancellation before querying the response headers.
Posix platforms do not generate secure random bytes with random_device().
On posix platforms use the openSSL random byte generator which generates cryptographically secure random bytes
**NOTE**: Once the assert work is done this abort() will be switched over to assert.