diff --git a/CHANGELOG.md b/CHANGELOG.md index 22448a6..5c3ae74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,17 @@ # Changelog CAuth2 changelogs -## [0.2.0] Next release: +TODO LIST (Next release) + +- Add Secret key TOTP generator support for _panelauth_ in Python3 🐍⏰πŸ§ͺπŸ‘€ +- Add Secret key generator support for signing messages for _panelauth_ in Python3 🐍⏰πŸ§ͺπŸ‘€ +- Complement documentation + +## [0.2.1] - 2024-11-17 +- Update MBED TLS v3.3.0 -> v3.6.0 πŸ‘»πŸ˜Šβœ”οΈ - Add documentation πŸ‘»πŸ˜Šβœ”οΈ - Add Secret key TOTP generator support πŸ‘»πŸ˜Šβœ”οΈ -- Add Secret key TOTP generator support for _panelauth_ in Python3 🐍⏰πŸ§ͺπŸ‘€ - Add Secret key generator support for signing messages πŸ‘»πŸ˜Šβœ”οΈ -- Add Secret key generator support for signing messages for _panelauth_ in Python3 🐍⏰πŸ§ͺπŸ‘€ ## [0.1.1] - 2022-11-18 - Security update [mbedTLS](https://www.trustedfirmware.org/projects/mbed-tls/) v3.1.0 -> v3.2.1. See [here](https://mbed-tls.readthedocs.io/en/latest/tech-updates/security-advisories/) @@ -17,7 +22,8 @@ CAuth2 changelogs ## [master] - current -[0.2.0]: https://github.com/devfabiosilva/CAuth2 +[0.2.1]: https://github.com/devfabiosilva/CAuth2/tree/v0.2.1 [0.1.1]: https://github.com/devfabiosilva/CAuth2/tree/v0.1.1 [0.1.0]: https://github.com/devfabiosilva/CAuth2/tree/v0.1.0 [master]: https://github.com/devfabiosilva/CAuth2 + diff --git a/Makefile b/Makefile index 62de6ac..fd8309d 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ STRIP=strip CURDIR=$(PWD) INCLUDEDIR=$(CURDIR)/include MBEDTLS_GIT=https://github.com/Mbed-TLS/mbedtls.git -MBEDTLS_BRANCH=v3.3.0 +MBEDTLS_BRANCH=v3.6.2 MBED_INCLUDE_DIR=$(CURDIR)/downloads/mbedtls/build/compiled/include MBED_LIB_DIR=$(CURDIR)/downloads/mbedtls/build/compiled/lib MBED_LIB_OBJ_DIR=$(CURDIR)/downloads/mbedtls/build/library/CMakeFiles/mbedcrypto.dir @@ -41,7 +41,7 @@ ifneq ("$(wildcard $(CURDIR)/downloads/mbedtls)","") @echo "Already cloned. Skip" else @echo "Cloning branch $(MBEDTLS_BRANCH) from $(MBEDTLS_GIT)" - pwd; cd $(CURDIR)/downloads; pwd; git clone -b $(MBEDTLS_BRANCH) $(MBEDTLS_GIT); cd ..; pwd + pwd; cd $(CURDIR)/downloads; pwd; git clone --recursive -b $(MBEDTLS_BRANCH) $(MBEDTLS_GIT); cd ..; pwd endif ifneq ("$(wildcard $(CURDIR)/downloads/mbedtls/build/compiled)","") diff --git a/docs/d0/dd4/cauth2_8h.html b/docs/d0/dd4/cauth2_8h.html index f7a9aac..b40e5d3 100644 --- a/docs/d0/dd4/cauth2_8h.html +++ b/docs/d0/dd4/cauth2_8h.html @@ -106,11 +106,11 @@   #define FALSE   (int)(1!=1)   -#define ALG_SHA1_DEFAULT   (int)2 +#define ALG_SHA1_DEFAULT   (int)5   -#define ALG_SHA256   (int)4 +#define ALG_SHA256   (int)9   -#define ALG_SHA512   (int)6 +#define ALG_SHA512   (int)0x0b   #define ERROR_SUCCESS   (int)0   @@ -206,7 +206,7 @@

- +
#define ALG_SHA1_DEFAULT   (int)2#define ALG_SHA1_DEFAULT   (int)5
diff --git a/docs/d0/dd4/cauth2_8h_source.html b/docs/d0/dd4/cauth2_8h_source.html index 1ce2089..6cf0078 100644 --- a/docs/d0/dd4/cauth2_8h_source.html +++ b/docs/d0/dd4/cauth2_8h_source.html @@ -101,11 +101,11 @@
111 
116 #define FALSE (int)(1!=1)
117 
-
122 #define ALG_SHA1_DEFAULT (int)2
+
122 #define ALG_SHA1_DEFAULT (int)5
123 
-
128 #define ALG_SHA256 (int)4
+
128 #define ALG_SHA256 (int)9
129 
-
134 #define ALG_SHA512 (int)6
+
134 #define ALG_SHA512 (int)0x0b
135 
140 typedef int CAUTH_BOOL;
141 
diff --git a/docs/index.html b/docs/index.html index a699628..c8b1402 100644 --- a/docs/index.html +++ b/docs/index.html @@ -125,7 +125,7 @@

Credits

Author
FΓ‘bio Pereira da Silva
Date
Jun 19 2022
-
Version
0.1.0
+
Version
0.2.1

Contact

diff --git a/include/cauth2_dev.h b/include/cauth2_dev.h index a551554..6da0262 100644 --- a/include/cauth2_dev.h +++ b/include/cauth2_dev.h @@ -83,7 +83,7 @@ * * @author FΓ‘bio Pereira da Silva * @date Jun 19 2022 - * @version 0.1.0 + * @version 0.2.1 * @copyright License MIT see here * * ## Contact @@ -119,19 +119,19 @@ * @def ALG_SHA1_DEFAULT * @brief SHA1 Algorithm (Default) */ -#define ALG_SHA1_DEFAULT (int)2 +#define ALG_SHA1_DEFAULT (int)5 /** * @def ALG_SHA256 * @brief SHA256 Algorithm */ -#define ALG_SHA256 (int)4 +#define ALG_SHA256 (int)9 /** * @def ALG_SHA512 * @brief SHA512 Algorithm */ -#define ALG_SHA512 (int)6 +#define ALG_SHA512 (int)0x0b /** * @typedef CAUTH_BOOL diff --git a/include/version.h b/include/version.h index 20dfdf8..bb02e89 100644 --- a/include/version.h +++ b/include/version.h @@ -3,7 +3,7 @@ #define VERSION "0" #define VERSION_MAJOR "2" -#define VERSION_MINOR "0" +#define VERSION_MINOR "1" #define BUILD_YEAR "2022" #define BUILD_MONTH "07" @@ -11,4 +11,5 @@ #define BUILD_HOUR "1501" -#endif \ No newline at end of file +#endif + diff --git a/setup.py b/setup.py index f0843f3..5f84059 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ def main(): setup(name="panelauth", - version="0.2.0", + version="0.2.1", description="PLC panel / IoT AUTH2 and HMAC protocol modules for Python 3 using C library setup", author="FΓ‘bio Pereira da Silva", author_email="fabioegel@gmail.com", diff --git a/test/main.c b/test/main.c index 1c1045a..19665df 100644 --- a/test/main.c +++ b/test/main.c @@ -77,6 +77,9 @@ struct test_table_t int main(int argc, char **argv) { + C_ASSERT_EQUAL_STRING("0.2.1", cauth_getVersion(), CTEST_SETTER( + CTEST_TITLE("Check CAuth2 version is correct") + )) test_rfc6238_table(); test_signatures(); verify_signatures_test(); diff --git a/test/test_main.py b/test/test_main.py index c6d2bfa..9931d30 100644 --- a/test/test_main.py +++ b/test/test_main.py @@ -60,7 +60,7 @@ def test_module_get_version(caplog) -> None: info(k.getVersion.__doc__) info(k.getVersion()) - assert k.getVersion() == "0.2.0" + assert k.getVersion() == "0.2.1" def test_module_get_totp_exception(caplog) -> None: