Commit Graph

211 Commits

Author SHA1 Message Date
Larry Osterman
bb95a22e3f
Added the ability to select OpenSSL 1.1.1n if desired. (#4045)
* Added ability to switch to OpenSSL 1.1.1n

* Fixed OpenSSL compilation challenges - the CRL stuff works now

* Added instructions on using OpenSSL 1.1.1 to README

* Added vcpkg args to handle openssl variants
2022-10-28 15:57:51 -07:00
Anton Kolesnyk
4de2423934
In-memory Identity token cache (#4024) 2022-10-25 20:23:22 +00:00
Azure SDK Bot
f5f235174d
Increment package version after release of azure-core (#4000) 2022-10-06 18:48:34 +00:00
Anton Kolesnyk
64292fee49
Azure Core October Release (#3996)
* Azure Core October Release

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-10-06 10:26:38 -07:00
Larry Osterman
53c9da1552
Pull all Websockets changes to main except for WebSockets itself. (#3954)
* Pulled WebSocket fixes into main except for WebSockets functionality


Co-authored-by: Rick Winter <rick.winter@microsoft.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
Co-authored-by: George Arama <50641385+gearama@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-10-04 14:58:56 -07:00
Azure SDK Bot
81b733689b
Increment package version after release of azure-core (#3919) 2022-09-01 11:40:51 -07:00
Anton Kolesnyk
825d2dd136
Core September Release (#3913)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-09-01 10:30:24 -07:00
Azure SDK Bot
5a8d62358a
Increment version for core releases (#3865)
* Increment package version after release of azure-core

* Increment package version after release of azure-core-tracing-opentelemetry
2022-08-04 19:23:08 +00:00
Anton Kolesnyk
755d717df7
Core August releases (#3862)
* Core August releases

* cspell

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-08-04 11:00:06 -07:00
Rick Winter
1dab2c16de
Update CHANGELOG.md 2022-07-28 12:10:23 -07:00
Azure SDK Bot
55a2f3b440
Increment package version after release of azure-core (#3789) 2022-07-01 00:26:13 +00:00
Anton Kolesnyk
fa295fd9d6
Azure Core Services July Release (#3785)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-30 14:57:17 -07:00
Larry Osterman
38b07749dc
Removed internal types from OpenTelemetry API surface; removed default parameters from OpenTelemetry API surface. (#3762)
* Removed internal references from public headers


* Updated changelog files

* Updated DistributedTracing.md to reflect Factory construction of Azure::Core::Tracing::OpenTelemetry::OpenTelemetryProvider type

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2022-06-29 21:39:56 -07:00
Azure SDK Bot
3a26df2852
Increment package version after release of azure-core (#3699) 2022-06-03 03:04:48 +00:00
Anton Kolesnyk
d0853af995
Core 1.7.0-beta.1 Release (#3684)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-02 18:38:19 -07:00
Larry Osterman
7c93854125
Complete the initial implementation of OpenTelemetry (#3677)
* Added telemetry support for HTTP pipeline elements

* Finish OpenTelemetry implementation

* clang-format and added doxygen comments
2022-05-31 10:57:32 -07:00
Larry Osterman
8ca08a1429
Initial implementation of OpenTelemetry APIs. (#3561)
* Start of tracing prototype

* Created initial implementation of azure-core-opentelemetry package

* New version of enabling MSVCRT Lib for static configs

* Attempt to add OpenTelemetry tests to build

* Take a dependency on OpenTelemetry version 1.3

* Added service API level tracing support

* API Review feedback
2022-05-23 16:44:22 -07:00
Anton Kolesnyk
593464ceda
Remove (#3657)
oexcept specifier from Context::IsCancelled()

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-05-20 11:48:14 -07:00
Victor Vazquez
ca9a40b6b7
Adding Acknowledgments (#3611)
* cl

* Update sdk/core/azure-core/CHANGELOG.md

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

* cspell

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-05-12 17:07:49 -07:00
Azure SDK Bot
c2ce38da1f
Increment package version after release of azure-core (#3624) 2022-05-06 15:45:38 -07:00
Victor Vazquez
d317e06ba9
cl (#3613) 2022-05-05 09:54:19 -07:00
Ahson Khan
82261744eb
Reword the curl proxy fix changelog entry. (#3606) 2022-05-02 14:46:35 -07:00
Ahson Khan
5dba78eaa3
Fix-up the changelog entry link for the curtransportoption bug fix (#3598) 2022-04-29 14:23:56 -07:00
Ahson Khan
218784d82a
Create a session handle once in the transport ctor and reuse it for all requests rather than creating a new one each time. (#3585)
* Reuse the same session handle for all requests rather than creating a new one each time.

* Move the session handle creation to the transport adapter ctor.

* Update changelog entry.

* Address PR feedback.

* Change CreateSessionHandle to return a local session handle
2022-04-28 14:19:55 -07:00
JinmingHu
87b230a51d
Add batch protocol layer (#3580)
* Add batch protocol layer
2022-04-26 08:58:20 +08:00
Victor Vazquez
d799012230
update log level from Retry policy (#3586)
* update log level

* Update sdk/core/azure-core/CHANGELOG.md

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-04-25 22:53:58 +00:00
Victor Vazquez
bdb71249ce
update curl transport options to support ignore proxy from system (#3564)
* update curl transport options to support ignore proxy from system

* update changelog

* bug fix for cl
2022-04-25 16:50:17 +00:00
Azure SDK Bot
8d47e6d490
Increment package version after release of azure-core (#3496) 2022-04-06 11:32:14 -07:00
Victor Vazquez
fa5dc0a770
azure-core, changelog for Apr2022 release (#3491)
* changelog for Apr2022 release

* revert
2022-03-31 12:19:43 -07:00
Victor Vazquez
4ab3901bbb
Rename winhttp transport option (#3488)
* rename option
2022-03-31 12:19:25 -07:00
Victor Vazquez
d7536a2c25
Enforce TLS 1.2 for libcurl and winHttp (#3460)
* Enforce TLS 1.2 for libcurl and winHttp

* docs

* missing rename
2022-03-22 21:27:28 +00:00
Victor Vazquez
af590d80f3
[PERF FW] Insecure cert libcurl (#3434)
* Support insecure for libcurl

* format

* warnings and notes about insecure

* winhttp notice and warning

* revert

* add comment

* Update arg

* enable winHTTP insecure

* rename method

* rename method

* update raw pointer to ref

* cl

* docs

* docs
2022-03-21 16:18:13 -07:00
Victor Vazquez
0564cc479e
Improve the Transport exception from Libcurl adapter (#3456)
* improve the Transport exception

* update comment and name
2022-03-21 22:23:33 +00:00
Larry Osterman
f4e99416c9
RequestFailedException includes error information #3398 (#3397)
* RequestFailedException includes error information

* Fixed test collateral

* Added changelog entry for new core version; Added tests to verify response message contains all expected fields
2022-03-11 21:15:10 +00:00
Azure SDK Bot
60714c4641
Increment package version after release of azure-core (#3391) 2022-03-09 22:11:00 +00:00
Victor Vazquez
172808eb1c
Azure Core change log for March release (#3390)
* version update

* add something

* Update sdk/core/azure-core/CHANGELOG.md

Co-authored-by: Ahson Khan <ahkha@microsoft.com>

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-03-04 00:52:48 +00:00
Azure SDK Bot
8774c4ced6
Increment package version after release of azure-core (#3323) 2022-02-08 11:56:57 -08:00
Larry Osterman
60c075a64e
Base64::Decode throws std::runtime_error on failure. (#3305)
* Throw an exception when base64 decode has bogus inputs

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2022-02-08 09:34:00 -08:00
Victor Vazquez
7bd640ae55
Azure Core Feb2022 release changelog (#3307)
* Azure Core Feb2022 release changelog

* Update sdk/core/azure-core/CHANGELOG.md

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>

Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
2022-02-04 15:23:28 -08:00
Ahson Khan
9c79a0725d
Removing the two param RFE ctor, there should be no callers (#3215)
* Removing the two param RFE ctor, there should be no callers

* Remove the two param RFE ctor from the source file.

* Fix-up unit test and add a changelog entry.

* Remove test that uses the removed ctor.
2022-02-03 19:00:25 -08:00
Anton Kolesnyk
2aae6be7a3
Encapsulate getenv(), and make it work on UWP (#3275)
It all started with UWP. The [docs](https://docs.microsoft.com/en-us/cpp/cppcx/crt-functions-not-supported-in-universal-windows-platform-apps?view=msvc-170) say: "`Environment variables are not available to UWP apps.`". And it truly won't work, I tried: linker error, the function is simply not present.

So, for a year or so, we were `ifdef`ing everything enivoronment-related: console logger, environment credential, managed identity credential.

And then just recently we wanted to enable our CI for UWP, including tests and samples. And it required to do more ifdefs (in vcpkg, we don't build samples or tests, so that problem did not exist).

It just became more messy. Especially in samples - you can see how we would disable warning with `#pragma warning(disable : 4996)` or defining `_CRT_SECURE_NO_WARNINGS` already, but now came UWP, so we would have to add comment that `getenv()` is not available and make the sample compilation to either fail with clear message, or throw an exception. Plus we would have to detect that we are being compiled on UWP, which also adds visual clutter for reader. You can see how such an irrelevant (for a sample) thing as `getenv` was consuming more and more lines of sample code and reader's attention.

But then! I read docs on more APIs for UWP. And I noticed that on .NET you can read environment variables. So I went and checked Win32 API docs for [GetEnvironmentVariable()](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getenvironmentvariable) - it says: "`Minimum supported client: ... UWP apps`".

**GetEnvironmentVariable() works on UWP!**
And so does `SetEnvironmentVariable()` (our tests use it, which means we can make all of them work and execute for UWP).

That's good news, but now it would probably be more code: it usually takes more lines to invoke WinAPI, it is no more an one-liner to call `getenv()/setenv()`. So, I encapsulated that into `Azure::Core::_internal::Environment::GetVariable()` and `SetVariable()`. You can see how much less ifdefs is in our code now. Not to mention it works on UWP!

Per team request, that API is SDK-internal. Samples use their own mini-helper project, `get-env-helper` that makes is so that `getenv()` works naturally on Linux and macOS, compiles without warnings and works on Win32, and compiles and works on UWP (using `GetEnvironmentStringsA()`)

If it was for me, I would just make `Azure::Core::Environment::GetVariable()` public and simplify even further, I think it would be beneficial for sample readers (you can see that extra `get-env-helper` stuff adds just a little more visual clutter, compared to nothing). But I can see reasons against that, why team did not want to do it.
2022-01-29 08:22:33 +00:00
Ahson Khan
b3ac959049
Fix up the Azure Core changelog for breaking change and new line (#3255) 2022-01-20 07:13:11 -08:00
Victor Vazquez
30c5d77d88
Remove Logging from the LibcurlConnectionPool - cleaning routine (#3219)
Remove Logging from the LibcurlConnectionPool - cleaning routine (#3219)
2022-01-13 20:04:18 +00:00
Anton Kolesnyk
12a2ca31bc
Fix DateTime::Parse validation for dates past year 9999 due to adjustments (#3177) 2021-12-13 12:55:00 -08:00
Anton Kolesnyk
764b839dec
Make AZURE_ASSERT and related macros internal (#3059) 2021-11-17 18:31:37 -08:00
Azure SDK Bot
f84c8d2af7
Increment package version after release of azure-core (#3073) 2021-11-08 08:43:45 -08:00
Victor Vazquez
7e7979d7f7
Cl for release 1.3.1 (#3070) 2021-11-05 15:31:33 -07:00
Anton Kolesnyk
ae612c5db5
Fixed linking error when Azure SDK is being built as DLL. (#3069)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
Co-authored-by: Victor Vazquez <victor.vazquez@microsoft.com>
2021-11-05 14:25:11 -07:00
Azure SDK Bot
7926ec8c3c
Increment package version after release of azure-core (#3058) 2021-11-05 14:08:33 -07:00
Ahson Khan
e498d6a165
Update cspell.json entry for contributor names within azure core changelog. (#3049)
* Update cspell.json entry for contributor names within azure core changelog.

* Remove in-line exception
2021-11-04 15:31:04 -07:00