Граф коммитов

66 Коммитов

Автор SHA1 Сообщение Дата
Dane Walton 006bf8e94c
Port vcpkg updates to adu feature branch (#2336)
Co-authored-by: Victor Vazquez <vhvb1989@gmail.com>
2022-09-14 12:51:35 -05:00
Dane Walton 1c03c752cf
add adu code (#2288) 2022-08-01 14:20:31 -07:00
Charlie Barto 3e18d44ebb
Activate address sanitizer in CI, on Linux and Windows (#2219)
* Actually use the COMCKA_LIB variable that we set in the top level CMakeLists.txt

* rename global_compile_options.txt to .cmake

This results in better colorization in editors, and is less suprising.

* add ADDRESS_SANITIZER option

* add asan to CI, use

* use - instead of / for sanitize=address, so things work with other compilers

* make the canary compiler-specific.

* make an imported target for cmocka if it's too old to have a real imported target.

* link asan when using gcc

* make only the static analysis lie compiler specific.

* use target_link_libraries and target_include_directories instead of set_property

This is required to properly expand build type keywords.

* Revert "use target_link_libraries and target_include_directories instead of set_property"

This reverts commit f10143e03b.

* Revert "make an imported target for cmocka if it's too old to have a real imported target."

This reverts commit fd708295b8.

* just do target detection, don't try and make an imported target

the imported target doesn't work because it has build type keywords.

* supress "asan needs debug mode for good error reporting.

* ignore the linker warning about better debug info too.

* Remove the canary

* Add asan to a debug linux build.

* whitespace

* whitespace mk2

* update readme to mention asan

* asan option description nits

* add some explenation of the changes to linker warnings

* add note about compiler warning as well.
2022-07-05 15:32:22 -07:00
Dane Walton da74369bb1
wrap CMP0091 in MSVC check (#1580) 2021-02-11 07:37:31 -08:00
Victor Vazquez f9f6633b9c
Support passing a lib name for the platform implementation (#1524) 2020-12-02 10:02:17 -08:00
Billy O'Neal 028dc79a7d
Fix Windows to use /MT when building static libraries. (#1394) 2020-10-02 02:24:31 +00:00
Victor Vazquez 19cd72dfd1
Consume CMocka CMake module directly from CMocka repo (#1382)
Removing the CMake module used to create cmocka tests. It was taken from some 3rd party instead of taking it directly from CMoka modules (https://gitlab.com/cmocka/cmocka/-/blob/master/cmake/Modules/AddCMockaTest.cmake)
2020-09-30 16:39:49 +00:00
Rick Winter 323e4c39ac
Storage Blob Upload (#1315)
Storage Blob upload
2020-09-21 17:58:45 -07:00
Victor Vazquez 8b35c75d23
Updates for cmake modules (#1267)
adding licence for cmake modules
2020-09-15 12:41:12 -07:00
Daniel Jurek 8dc7062646
Only create map files if cmake is 3.13 or greater (#1208)
* Only create map files if cmake is 3.13 or greater
* Use a module for producting map files
* Review feedback
* Give warning message that map files won't be generated
2020-09-04 16:21:59 -07:00
Ahson Khan df4b7e032a
Update spacing and formatting of README markdowns by using a linter. (#959)
* Update spacing in markdown by using a linter.

* Fixup provisioning sample readme.

* Fix up iot hub md files.

* Fix typos and spelling errors across the repo.

* Revert vscode settings commit.

* Fix the reference to step numbers in the linux and windows iot hub
samples.
2020-07-28 13:48:47 -07:00
Mollie Munoz 099446822c
DPS SAS Sample (#927)
* Create DPS SAS sample
* Create src/ and inc/ under samples/iot.  Move sas utility files in
* Update cmake files
* Update cert generation scripts
2020-07-15 16:03:58 -07:00
Victor Vazquez 39ffb78e87
Throw cmake error when setting MOCK ON without gcc (#925)
* Throw cmake error when setting MOCK ON without gcc

* Apply suggestions from code review

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

Co-authored-by: Ahson Khan <ahkha@microsoft.com>
2020-07-14 16:40:03 -07:00
Rick Winter f31482c03a
Remove the KeyVault sample (#867) 2020-07-06 10:22:04 -07:00
danewalton 43e4de8dca
Update directory structure for IDE compatability (#830) 2020-06-15 11:10:36 -07:00
danewalton 0316d954db
Update CMake targets to link to deps (#827) 2020-06-12 17:03:25 -07:00
Ahson Khan 22ce2f1dfe
Rename the /core/core/ directory to /core/az_core/, 2nd attempt. (#778) 2020-05-19 16:52:29 -07:00
Victor Vazquez d52d392f89
Remove az_core cmake linking to az_curl and az_transport AND docs for libcurl global init (#763)
* remove cmake linking. Use linking only for samples and tests. unit tests uses az_noplatform
2020-05-19 15:45:28 -07:00
Ahson Khan 467796c2f5
Removing the unnecessary nested /cmocka/ directory within tests. (#731) 2020-05-19 15:22:38 -07:00
danewalton d35247d1c5
Add subdirectory only for specified platform (#767) 2020-05-15 15:52:54 -07:00
Anton Kolesnyk 738ba1ee48
Logging: option to remove all logging code (#707) 2020-05-14 12:05:46 -07:00
Ahson Khan 661ab65f33
Rename BUILD_PAHO_TRANSPORT cmake option to TRANSPORT_PAHO. (#743) 2020-05-12 15:58:31 -07:00
Ahson Khan 3bacc30b5a
Rename BUILD_PRECONDITIONS and other cmake options to be more concise and fix cmocka typos. (#732)
* Rename BUILD_PRECONDITIONS option to be BUILD_WITH_PRECONDITIONS and fix
cmocka typos.

* Address feedback - rename and shorten the options.
2020-05-12 15:03:45 -07:00
ewertons f753d112bb
Move Azure IoT Plug and Play client to WIP (Work-in-Progress) branch (#683)
For the public preview of Azure IoT Embedded C SDK the plug-and-play (pnp) client
will not be ready, and must not be made public with the rest of the Azure IoT SDK.
The current code of the Azure IoT PnP client will reside on the following branch until ready:
https://github.com/Azure/azure-sdk-for-c/tree/iot/pnp_wip
2020-05-05 13:05:43 -07:00
ewertons c7bb4f2202
Move _az_span_token to core SDK (#674)
* move _az_span_token from az_iot_core.h to az_span_internal.h

* [iot] Add az_iot_core_internal.h, move _az_iot_u32toa_size

* [iot] Rename 'iot core' to 'iot common'

According to decision made on C99 discussion meeting, the az iot 'core' comp unit
shall be renamed to az iot 'common' to avoid confusion with SDK core lib.

* [ACR/1] move _az_span_token from az_iot_core.h to az_span_internal.h

* [ACR/2] move _az_span_token from az_iot_core.h to az_span_internal.h

* Fix for test_az_credential_client_secret.c break introduced by 6d1f4c6c22
2020-05-04 15:01:16 -07:00
danewalton ba67151753
Add IoT Hub Samples for Twin, Telemetry, C2D, and Methods (#648) 2020-05-01 18:01:29 -07:00
Victor Vazquez 3f35de0402
fix comment for disabling preconditions (#656) 2020-04-30 09:40:03 -07:00
Anton Kolesnyk 023bca7204
Prefix build macros, internal prefix for precondition checks (#654) 2020-04-29 21:19:11 -07:00
danewalton 3011f16b29
change source_dir to current_list_dir (#652) 2020-04-29 15:26:50 -07:00
Victor Vazquez b365d28aac
Adding cmake option for disabling preconditions, docs and CI pipeline (#582)
* Adding cmake option for disabling preconditions, docs and CI pipeline
2020-04-15 15:05:30 -07:00
Cristian Pop 59610cf4ef
IoT Provisioning client send (#547)
* Implementation for IoT  Provisioning Client, paho sample.
Updating vcpkg requirements.
Fixing doxygen
Certifiate gen tool.

* Build fix. Public API struct-by-ref.

* Addressing PR comments.

* Fixing build on Windows.

* Allowing the sample to run on systems without a properly configured default OpenSSL CA store.

* Addressing pr comments.
2020-04-09 15:29:12 -07:00
Victor Vazquez 59d2c6ca8e
Create txt file during generation with the list of targets with code coverage config (#542)
* Create txt file during generation with the list of targets with code coverage configuration

* use the binary dir

* unwanted change

* add missing test project for iot core

* modify coverage generation to use list of coverage targets created by the build

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2020-04-02 17:10:20 -07:00
John Spaith 06fa163726
Create az_iot_pnp client init & user APIs (#519)
Implement set of core functions for az_iot_pnp library:
* `az_result az_iot_pnp_client_init`
* `az_iot_pnp_client_get_user_name`

And inline a few more:
* `az_result az_iot_pnp_client_get_id`
* `az_result az_iot_pnp_client_get_sas_signature`
* `az_result az_iot_pnp_client_get_sas_password`

These functions for the most part (or entirely in inline case) build on top of az_iot_hub layer.
2020-03-26 14:53:42 -07:00
Cristian Pop 798254b721
Azure IoT folder structure (#506)
* Changing folder structure, Renaming az_iot_common to az_iot_core
* Fixing doxygen parameter mismatch in az_iot_provisioning.h
2020-03-23 14:15:00 -07:00
Victor Vazquez c4befcb0c5
Victor/testing/adding tests for code cov with mocked functions (#442)
* mocking sample
2020-03-12 12:04:19 -07:00
Victor Vazquez 9e61ac7c52
set min version of cmake to 3.10 (#436)
* set min version of cmake to 3.10

* missing readme refs
2020-03-10 13:54:43 -07:00
Anton Kolesnyk 1ff201db7d
Move KeyVault to samples (#439) 2020-03-10 11:44:11 -07:00
Victor Vazquez 14717de143
Victor/test/migrate test to cmocka (#405)
* migrate all core tests to cmocka
2020-02-28 15:46:46 -08:00
Victor Vazquez 7d918915a9
adding cmoka test framework (#343)
* Adding cmoka test fw

* add group name to tests

* publish cmocka results
2020-02-27 15:59:10 -08:00
ewertons 4a626e65d9
Initial commit of the az_iot SDK (sas token module and tests) (#375)
* Initial commit of the az_iot SDK (sas token module and tests)

This commit lays down the initial file structure of the Azure IoT C SDK within Azure SDKs for C suite.
It also contains the first module for SAS token generation and tests.
There also some additions to az_span and az_contract for supporting all operations needed for SAS token generation.

* [ACR/1] Initial commit of the az_iot SDK (sas token module and tests)

Addressing code review (ACR) comments from 1st iteration.

* [ACR/2] Initial commit of the az_iot SDK (sas token module and tests)

Addressing code review (ACR) comments from 2nd iteration (use AZ_SPAN_FROM_BUFFER).

* [ACR/3] Initial commit of the az_iot SDK (sas token module and tests)

* [ACR/4] Initial commit of the az_iot SDK (sas token module and tests)

* [ACR/5] Initial commit of the az_iot SDK (sas token module and tests)
2020-02-25 15:48:50 -08:00
Victor Vazquez 0aa2a9b3f7
avoid sdk client linking az_core on it and only getting headers instead (#385)
* avoid sdk client linking az_core on it and only getting headers instead

* overflow for exp conversion

* renaming az_mut_span test

* move exp limit test to main
2020-02-25 14:44:29 -08:00
Anton Kolesnyk e11b4e2208
PAL Layer (and Curl) + minor changes (#374) 2020-02-22 11:47:17 -08:00
Anton Kolesnyk 53001ee8b4
Archive ustoreageclient (#369)
Archive ustorageclient (=> archive/ustorageclient)
2020-02-20 11:38:15 -08:00
Victor Vazquez eb9b9849a3
Victor/curl/adding option to include curl (#356)
* adding option to build transport curl
2020-02-19 15:56:10 -08:00
Rick Winter 3bfc7ee102
Add samples into samples folders (#352)
* Add samples into Sample folders
Add ability to build the SDK without building samples
  -By default samples are built
  -To disable samples set AZ_SDK_C_NO_SAMPLES=1
2020-02-13 11:42:12 -08:00
antkmsft 090a1447c5
Identity refactoring (#337) 2020-02-06 20:56:09 -08:00
Victor Vazquez 4b533ee8e8
making URI inside clientes immutable (#332)
* making URI inside clientes immutable

* rename transport policies folder

* missing az_cfg for curl
2020-02-06 15:47:59 -08:00
Victor Vazquez 37f4c95479
Victor/refactor/all-project-refactor (#330)
* merge az_span with az_mut_span and az_span_builder

* enhancing public az_span api

* use getter and setter for az_span

* update project without az_span_span

* update readme with macro name

* merge http headers into az_http.h

* deleted headers and features (az_span_span, az_pair_span)

* identity updates for az_span unification

* keyvault changes for az_span unification

* storage changes for az_span unification

* changes to actions part I

* az_span updates

* json updates for az_span unification

* curl and uri chages

* base 64 updates

* optional types, moving str to private and tests

* Action Removal

* merge json headers to az_json.h

* quick

* remove http_response_parser and use only http_response with internal span to read

* fixes for unit tests

* http request refactor. Removing buffer and now using url and headers az_span

* keyvault refactoring

* keyvault changes

* storage updates

* small doc updates for clang

* remove typedef for keyvault tags

* removing CURL from CORE

* moving az_hex to private

* removing az_url and az_url_decoding

* fixing unit tests

* updates for log and current master

* Resolve warning for windows compiler

* disabling MAC pipeline while unrelated build issue on mac is fixed
2020-02-05 13:34:57 -08:00
Daniel Jurek 7364fecd6a DRY up warning flags (#296)
* DRY up warning flags

* Fix core and test warning for MSVC (#299)

* Fix local MSVC warnings

* Fix core and test warning for MSVC

* address comments

* Undo prefix/suffix files

* Fix '..' include warning

* Try fixing Linux and Max warnings

* Fix Mac and Linux in a bit other way

Co-authored-by: antkmsft <41349689+antkmsft@users.noreply.github.com>

* fix merge artifacts

* 404

* fix merge artifacts.

* "ignore" warning

* doc stub

* doxygen

* error handling

Co-authored-by: Sergey Shandar <sergey-shandar@users.noreply.github.com>
Co-authored-by: antkmsft <41349689+antkmsft@users.noreply.github.com>
2020-01-16 16:47:19 -08:00
Rick Winter 576721f7a5
Storage Blobs PoC (#273)
Add an Azure Storage client
  -Based on the 2019-02-02 service version
  -Client currently only supports BlockBlob
  -Client currently only supports upload
2020-01-07 10:34:09 -08:00