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

11 Коммитов

Автор SHA1 Сообщение Дата
Ewerton Scaboro da Silva 3b5a7ea36a Rename macro_utils defines to avoid collisions
This commit changed the macros defined below to names prefixed with "MU_" whenever applicable.
When updating your code to consume this change, follow the new names below (<old name> -> <new name>).
Notice that, if present, __FAILURE__ has been changed to MU_FAILURE.

C1 -> MU_C1
C2 -> MU_C2
C3 -> MU_C3
C4 -> MU_C4
C5 -> MU_C5
COUNT_1_OR_MORE_ARG -> MU_COUNT_1_OR_MORE_ARG
COUNT_ARG -> MU_COUNT_ARG
DEC -> MU_DEC
DECLARE_ENUM_STRINGS -> MU_DECLARE_ENUM_STRINGS
DEFINE_ENUM -> MU_DEFINE_ENUM
DEFINE_ENUMERATION_CONSTANT_AS_STRING -> MU_DEFINE_ENUMERATION_CONSTANT_AS_STRING
DEFINE_ENUMERATION_CONSTANT_AS_WIDESTRING -> MU_DEFINE_ENUMERATION_CONSTANT_AS_WIDESTRING
DEFINE_ENUM_STRINGS -> MU_DEFINE_ENUM_STRINGS
DEFINE_LOCAL_ENUM -> MU_DEFINE_LOCAL_ENUM
DEFINE_MICROMOCK -> MU_DEFINE_MICROMOCK
DISPTACH_EMPTY -> MU_DISPTACH_EMPTY
DIV2 -> MU_DIV2
DO -> MU_DO
EMPTY -> MU_EMPTY
ENUM_TO_STRING -> MU_ENUM_TO_STRING
EXPAND_ -> MU_EXPAND_
EXPAND_ARGS -> MU_EXPAND_ARGS
FOR_EACH -> MU_FOR_EACH
FOR_EACH_2 -> MU_FOR_EACH_2
IF -> MU_IF
IFCOMMA -> MU_IFCOMMA
IFCOMMA -> MU_IFCOMMA
INC -> MU_INC
INTERNALIF -> MU_INTERNALIF
ISEMPTY -> MU_ISEMPTY
ISZERO -> MU_ISZERO
LPAREN -> MU_LPAREN
MORE_THAN_1_ARG -> MU_MORE_THAN_1_ARG
P_OR_NULL -> MU_P_OR_NULL
STRING_TO_ENUM -> MU_STRING_TO_ENUM
THE_NTH_ARG -> MU_THE_NTH_ARG
TOSTRING -> MU_TOSTRING
WP_OR_NULL -> MU_WP_OR_NULL
_TRIGGER_PARENTHESIS_ -> MU_TRIGGER_PARENTHESIS
2019-03-18 19:36:48 -07:00
John Spaith 1d622902d7
Add verification of trusted certs in memory to Windows
* Explicitly null out value

* Initial logic for trusted certs on Windows

* wave 1 of UT

* Adding bunch of types for UT

* Fix UT

* Phase 1 of multiple PEMs in trusted Cert

* fix UT's

* WinHttp integration (& refactor) phase1

* Build for x64 win

* Refactor HTTPAPI_Execute()

* Wire up WinHttp into x509 cert checking

* Wave 1 of code review feedback

* Add x509_schannel_int, and extend c-utility cmake rules to properly build integration tests

* Add additional context in helper

* Add int tests for Windows & fix win32 Winhttp break

* OPTION_TRUSTED_CERT to be deleted

* Use appropriate certificate store for validation

* Disable Winhttp cert checks when we're doing it ourselves

* Remove invalid intermediate int test

* Fix UT/int test issues

* Remove for WinCE

* Remove SECURITY_FLAG_IGNORE_CERT_CN_INVALID flag.

Was needing this in local test because was setting 127.0.0.1 as target but the cert was to my machine name.

Correct fix however is for caller to make sure names align, which is point of SSL.

C SDK's use of Curl has same behavior on mismatched names, so as bonus this brings Windows/Linux parity.
2018-12-11 10:54:31 -08:00
Dan Cristoloveanu 5c31ad70ec Make LOGError detect errors 2018-10-05 10:38:26 -07:00
Binal Kamani bad745b28e Defaulting OpenSSL tls version to v1.2 2018-10-02 14:30:52 -07:00
zolvarga 0756cea367 ${COMMIT_MESSAGE} 2018-09-06 22:35:00 +00:00
John Spaith d0766e15c6 Fix break when no_logging cmake was set 2018-07-23 22:08:11 +00:00
jebrando db9cb18328 Fix failures in openssl for unused variables 2018-06-12 17:04:57 -07:00
massand d8624aeaf7 pr comment fixes 2018-06-07 22:42:36 -07:00
massand 0a29ca5366 rename; fix for missing string option 2018-06-07 16:25:41 -07:00
massand 3021fb4860 Merge branch 'Fix_Set_TLS_CipherSuites' of https://github.com/jkriba/azure-c-shared-utility into jkriba_Fix_Set_TLS_CipherSuites 2018-06-07 09:52:44 -07:00
Jelani de99c1873d Move tlsio items to adapters 2018-05-01 20:32:17 +00:00