Commit Graph

334 Commits

Author SHA1 Message Date
Larry Osterman
61003a921e
Create CMakePresets.json as an alternative to cmakesettings.json (#4429)
* Create CMakePresets.json as an alternative to cmakesettings.json

* Added (void)
2023-03-13 20:33:18 +00:00
JinmingHu
e2a1b99a06
Add support to ignore invalid cert common name (#4361) 2023-02-25 11:12:08 +08:00
JinmingHu
395e9a0640
Test proxy & storage tests improvements (#4241) 2023-02-22 09:37:49 +08:00
Jørgen Lind
4d894adc51
Fix compilation on Visual Studio 2017 (#4352)
Co-authored-by: Jørgen Lind <jorgen.lind@bluware.com>
2023-02-13 16:00:52 -08:00
Azure SDK Bot
6a53e4122f
Increment version for core releases (#4338)
* Increment package version after release of azure-core

* Increment package version after release of azure-core-tracing-opentelemetry
2023-02-03 09:24:25 +00:00
Anton Kolesnyk
aa9cd300fe
Core February Release (#4315)
* Core February Release

* Accumulate changelog entries from previous Beta releases

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

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

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>

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

Co-authored-by: Larry Osterman <LarryOsterman@users.noreply.github.com>

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

* Update CHANGELOG.md

* Add wil dependency

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

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

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

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

* Undo change to the vcpkg manifest file (went in in other PR)

* Sync with main

---------

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>
2023-02-02 23:36:12 -08:00
Anton Kolesnyk
05040409d9
Policies do not overwrite HTTP headers if they are already set (#4303)
* Policies do not overwrite HTTP headers if they are already set

* Use static constant UserAgent

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-01-31 17:58:48 -08:00
Larry Osterman
f757bb06e7
Clean up tracing logic - prepare for new tracing functionality. (#4263)
- Made Context immutable (including marking the static ApplicationContext as const
- Put back TelemetryPolicy in all pipeline cases and removed User-Agent generation from RequestActivityPolicy (note: This part of the change may end up being reverted). Also updated parameters for TelemetryPolicy to make it clearer that the parameter is a package name, not a service name.
- Changed Az.Namespace value from being the package name to being the service name.
- Change test SpanExporter to fully capture exported values rather than keeping references to the values.


Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
2023-01-25 19:07:25 +00:00
Johannes Schönberger
6e6ca66c26
Reset connection pool upon failure to read response (#4208)
* Reset connection pool upon failure to read response

* cspell

* format

* format

* CR
2023-01-18 22:07:31 +00:00
Azure SDK Bot
fb64990a87
Increment package version after release of azure-core (#4223) 2023-01-05 19:05:03 -08:00
Ahson Khan
6536b0c61c
Move Request ctor impl to the request.cpp file instead of http.cpp (#4195)
* Move Request ctor impl to the request.cpp file instead of http.cpp

* Add the ctors to request.cpp

* Remove null body stream header from http.cpp

* Remove unused namespace using

* Add _internal using namespace for NullBodyStream

* Fix include path
2023-01-03 16:13:05 -08:00
Anton Kolesnyk
152a847dcc
noexcept adjustments (#4200)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-01-03 11:17:16 -08:00
Anton Kolesnyk
a70be339e7
Audit string comparisons (#4197)
* Audit string comparisons

* Mac fix

* !isxdigit()

* Rewrite condition + comment

* <3

* Clang-format

* 255

* Allow uppercase

* stoi() radix

* ShouldEncode()

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2023-01-03 11:16:54 -08:00
Anton Kolesnyk
97235cb46b
Add support for space character instead of 'T' when parsing RFC3339 DateTimes (#4184)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-12-12 13:16:11 -08:00
Anton Kolesnyk
405ae8cba7
Only allow BearerTokenAuthPolicy for HTTPS (#4170)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-12-07 20:03:17 -08:00
Larry Osterman
5737bfeb6a
Fixed #4137 - Don't close CURL connection on shutdown (#4142)
* Fixed #4137 - Don't close connection on shutdown

* clang-format
2022-12-05 13:32:50 -08:00
Ahson Khan
928c9cf6eb
Disable warning C6387 coming from wil in win_http_transport due to SAL annotation (#4132)
* Disable warning C6387 coming from wil in win_http_transport

* Disable warning C6387 coming from wil in win_http_transport header

* Clang format fix for header file

* Clang format fix for source file
2022-11-28 12:20:00 -08:00
Azure SDK Bot
40afee9c16
Increment package version after release of azure-core (#4090) 2022-11-07 14:39:19 -08:00
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
George Arama
673bacba08
identicalize the comments type (#4063) 2022-10-26 10:16:32 -07:00
Anton Kolesnyk
4de2423934
In-memory Identity token cache (#4024) 2022-10-25 20:23:22 +00:00
Rick Winter
34485a7ab7
Fix to for a SAL annotation (#4054) 2022-10-25 18:37:25 +00:00
Larry Osterman
6c225cd6c9
Converted WinHTTP to Async. (#4015)
* Async WinHTTP

* Added cancellation test; added support for request cancellation.

Co-authored-by: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahkha@microsoft.com>
Co-authored-by: Rick Winter <rick.winter@microsoft.com>
2022-10-24 11:43:42 -07:00
Larry Osterman
01254a62cd
Fixed CURL build breaks discovered by newer openssl baselines (#4034) 2022-10-17 23:25:31 +00:00
Azure SDK Bot
f5f235174d
Increment package version after release of azure-core (#4000) 2022-10-06 18:48:34 +00:00
Larry Osterman
895a1f9f2c
Fixed memory leak in curl (#3995)
* Fixed memory leak in curl

* fixed documentation in unique_handle.hpp
2022-10-05 02:50:42 +00: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
keshen-msft
e019b3ea7e
Fix an issue that reason phrase is missing as expected from HTTP/2 server (#3879)
* Fix an issue that reason phrase is missing as expected from HTTP/2 server

* reverse the condition

* compact comments

* fix clang format
2022-08-10 12:59:47 -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
John Heffner
86b3305b09
Retry poll calls on EINTR (#3858)
When signals are delievered to the process, calls here to poll may be
interrupted and return with a spurious failure.  The call instead should be
restarted.
2022-08-01 09:11:43 -07:00
George Arama
46eaa38dde
mem leak fix (#3794)
* mem leak fix

* PR comments fix

* PR comments

* seems to work?

* clang

* curl again
2022-07-08 14:04:55 -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
498d930868
Update version for Core release (#3788)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-30 23:21:38 +00: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
Ahson Khan
de6ed1da38
Add missing license header to http_sanitizer source file (#3739) 2022-06-16 19:59:07 +00:00
Anton Kolesnyk
dfe9a2be1f
InputSanitizer: rename to HttpSanitizer, remove static member (#3736)
* InputSanitizer => HttpSanitizer, remove static

* Update cpp

* Clang format

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-15 11:18:23 -07:00
Anton Kolesnyk
b36403a018
Include pi-version to default list of unredacted query params for logging (#3730)
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-06-10 17:17:37 -07:00
Larry Osterman
99f45a5f18
Enable Distributed Tracing for Attestation SDK client. (#3706)
* Implement tracing for Attestation and Template services

* Pipeline no longer requires service name if opting into distributed tracing; enable tracing in attestation service

* Generate user-agent header from request activity policy

* Added test to catch the redacted header regression

* Updated documentation to reflect API surface changes
2022-06-08 11:40:56 -07:00
Azure SDK Bot
3a26df2852
Increment package version after release of azure-core (#3699) 2022-06-03 03:04:48 +00:00
Larry Osterman
78095ce0c7
Additional OpenTelemetry Feedback... (#3691)
* OpenTelemetry API Review Feedback

* Returns std::unique_ptr<DiagnosticTracingFactory instead of raw pointer

* Late breaking pull request feedback

* Renamed clientContext parameter to CreateSpan

* Renamed ContextAndSpanFactory to TracingContextFactory and CreateSpan to CreateTracingContext.
2022-06-03 00:25:08 +00:00
Larry Osterman
ebe084bfc6
OpenTelemetry API Review Feedback (#3687)
* OpenTelemetry API Review Feedback
2022-06-02 00:20:26 +00: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
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
Jeremi Piotrowski
f1de8d20df
sdk/core: Reimplement Md5OpenSSL using EVP API (#3609)
The MD5_Init/Update/Final functions are deprecated in OpenSSL 3.0 and result in
a compile-time warning. Due to the default usage of -Werror during compilation,
these warnings are treated as errors and prevent the SDK from being built on
Ubuntu 22.04, which ships with OpenSSL by default. The deprecated APIs should
be replaced by the EVP APIs, which are already in use for the SHA family of
functions, and supported on all versions of OpenSSL.
2022-05-03 10:32:29 -07:00
Ahson Khan
dffcb4c62b
Remove extra period at ends of exception messages in winhttp transport (#3601) 2022-04-29 14:24:30 -07:00