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

61 Коммитов

Автор SHA1 Сообщение Дата
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
antkmsft ad80d54dd9
Extract identity to a separate module (#274) 2019-12-17 18:15:06 -08:00
Daniel Jurek 6360261bd8
set -Wdocumentation for clang (#252)
* set -Wdocumentation for clang
* support more than just AppleClang
* use proper Clang casing
* Adding missing doxygen comments for build success
* Adding missing doxygen comments for build success
* Delete context.c
unwanted change
* adding Wdocumentation-unknown-command
* ading Wcast-qual and fixes
* add -Wdocumentation-unknown-command to kv
* Clang warnings (#266)
* update code from master
* add flag to disable warnings as errors
* better naming to configure warnings as errors
* re-adding proposed changes that were accidentally overwritten
2019-12-13 22:10:47 -08:00
Victor Vazquez 989b5947fc
Add Keyvault client as initial structure (#157)
KeyVault intial stubs and layout
2019-11-05 16:31:58 -08:00
Victor Vazquez 188dc459e0 Setup linking curl on win/lin/mac and simple test to use curl perform 2019-10-11 12:19:13 -07:00
Sergey Shandar 1819e46d03
JSON parser (#27)
* core library template.

* az_core

* let

* minor

* AZ_CSTR

* az_str and az_static_assert.

* az_cstr

* length

* stream

* az_http

* test

* test

* more functions

* additional options

* data state

* another try

* more

* strange

* number draft

* az_json_number

* number + string

* keywords

* az_json_token

* data types.

* data types

* Slices and index ranges.

* JSON token

* reorder

* readme

* Thoughts about reactive parser.

* something new

* errors

* digit, string

* state

* readme files

* issues

* comments

* notes

* it works

* readme.md

* a lot

* pointers

* another test

* No need for JSON state.

* No need for az_sign.h

* Stack overflow check.

* az_const_str_eq

* minor.

* ++*p => *p += 1

* C99 unions, stack push/pop.

* more tests.

* Update documentation.

* Symols.

* az_is_digit => isdigit

* Changes.

* Simplify number parsing.

* test

* Less nested `if`.

* AZ_MAKE_ERROR / AZ_MAKE_RESULT

* RETURN_IF_NOT_OK.

* az_const_str

* az_dec_number

* Test

* AZ_SPAN

* Span of bytes.

* tests

* run tests

* enable_testing()

* Fix test

* Address comments.

* az_json_read.

* az_span

* Reader

* const bug

* Tabs -> spaces (#37)

* Remove the last tab occurrence (appeared after the most recent merge) (#38)

* Tabs -> spaces

* internal PR (#39)

* az_option_byte

* refactoring for az_json_read_keyword_rest

* az_json_read_string_rest

* az_span_reader improved.

* az_const_span_sub

* clang-format.

* CLANG

* address comments

* formatting.

* Add core error for any argument-related errors (#40)

* Comments.

* Update clang-format and reformat core files (#42)

Update clang-format and reformat core files

* Remove az_option

* Revert "Remove az_option"

This reverts commit bad54a6170.

* EOF

* Add prefix/suffix header files; Switch to 100 char width style (#43)

* Add prefix/suffix header files

* Switch code formatting back to 100 char max width

* EOL@EOF

* Fix forgotten instance to include epilog

* Shorten the name for AZ_CORE_ERROR_ARGUMENT, as seen in another Sergey's branch. (#44)

* _az_cfg

* AZ_ERROR_FLAG

* static assert

* counter

* inline static_assert

* dummy

* another one

* dummy function.

* defaults

* static inline

* static

* main

* GCC

* UNIX
2019-10-01 20:48:21 -07:00