Skip to content

Commit

Permalink
Update version. Add new release
Browse files Browse the repository at this point in the history
  • Loading branch information
devfabiosilva committed Nov 18, 2024
1 parent e536dcf commit 637c6d6
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 24 deletions.
14 changes: 10 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/)
Expand All @@ -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

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)","")
Expand Down
12 changes: 6 additions & 6 deletions docs/d0/dd4/cauth2_8h.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@
<tr class="separator:aa8cecfc5c5c054d2875c03e77b7be15d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa93f0eb578d23995850d61f7d61c55c1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#aa93f0eb578d23995850d61f7d61c55c1">FALSE</a>&#160;&#160;&#160;(int)(1!=1)</td></tr>
<tr class="separator:aa93f0eb578d23995850d61f7d61c55c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a090f74af649f839af277bf3c7969e9a0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#a090f74af649f839af277bf3c7969e9a0">ALG_SHA1_DEFAULT</a>&#160;&#160;&#160;(int)2</td></tr>
<tr class="memitem:a090f74af649f839af277bf3c7969e9a0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#a090f74af649f839af277bf3c7969e9a0">ALG_SHA1_DEFAULT</a>&#160;&#160;&#160;(int)5</td></tr>
<tr class="separator:a090f74af649f839af277bf3c7969e9a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b4cc1e244b5df7ab4e5a56534c1a759"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#a0b4cc1e244b5df7ab4e5a56534c1a759">ALG_SHA256</a>&#160;&#160;&#160;(int)4</td></tr>
<tr class="memitem:a0b4cc1e244b5df7ab4e5a56534c1a759"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#a0b4cc1e244b5df7ab4e5a56534c1a759">ALG_SHA256</a>&#160;&#160;&#160;(int)9</td></tr>
<tr class="separator:a0b4cc1e244b5df7ab4e5a56534c1a759"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4aaf0d90d016eb954e451624beb7b90"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#af4aaf0d90d016eb954e451624beb7b90">ALG_SHA512</a>&#160;&#160;&#160;(int)6</td></tr>
<tr class="memitem:af4aaf0d90d016eb954e451624beb7b90"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#af4aaf0d90d016eb954e451624beb7b90">ALG_SHA512</a>&#160;&#160;&#160;(int)0x0b</td></tr>
<tr class="separator:af4aaf0d90d016eb954e451624beb7b90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea0ae801b7d25c979655a7eb20d034af"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dd4/cauth2_8h.html#aea0ae801b7d25c979655a7eb20d034af">ERROR_SUCCESS</a>&#160;&#160;&#160;(int)0</td></tr>
<tr class="separator:aea0ae801b7d25c979655a7eb20d034af"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down Expand Up @@ -206,7 +206,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a090f74af649f839af277bf3c
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define ALG_SHA1_DEFAULT&#160;&#160;&#160;(int)2</td>
<td class="memname">#define ALG_SHA1_DEFAULT&#160;&#160;&#160;(int)5</td>
</tr>
</table>
</div><div class="memdoc">
Expand All @@ -224,7 +224,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#a0b4cc1e244b5df7ab4e5a565
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define ALG_SHA256&#160;&#160;&#160;(int)4</td>
<td class="memname">#define ALG_SHA256&#160;&#160;&#160;(int)9</td>
</tr>
</table>
</div><div class="memdoc">
Expand All @@ -242,7 +242,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#af4aaf0d90d016eb954e45162
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define ALG_SHA512&#160;&#160;&#160;(int)6</td>
<td class="memname">#define ALG_SHA512&#160;&#160;&#160;(int)0x0b</td>
</tr>
</table>
</div><div class="memdoc">
Expand Down
6 changes: 3 additions & 3 deletions docs/d0/dd4/cauth2_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#aa93f0eb578d23995850d61f7d61c55c1"> 116</a></span>&#160;<span class="preprocessor">#define FALSE (int)(1!=1)</span></div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#a090f74af649f839af277bf3c7969e9a0"> 122</a></span>&#160;<span class="preprocessor">#define ALG_SHA1_DEFAULT (int)2</span></div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#a090f74af649f839af277bf3c7969e9a0"> 122</a></span>&#160;<span class="preprocessor">#define ALG_SHA1_DEFAULT (int)5</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#a0b4cc1e244b5df7ab4e5a56534c1a759"> 128</a></span>&#160;<span class="preprocessor">#define ALG_SHA256 (int)4</span></div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#a0b4cc1e244b5df7ab4e5a56534c1a759"> 128</a></span>&#160;<span class="preprocessor">#define ALG_SHA256 (int)9</span></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#af4aaf0d90d016eb954e451624beb7b90"> 134</a></span>&#160;<span class="preprocessor">#define ALG_SHA512 (int)6</span></div>
<div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#af4aaf0d90d016eb954e451624beb7b90"> 134</a></span>&#160;<span class="preprocessor">#define ALG_SHA512 (int)0x0b</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="../../d0/dd4/cauth2_8h.html#a699f49d3aa97dbe30db6f058004a781a"> 140</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">int</span> <a class="code" href="../../d0/dd4/cauth2_8h.html#a699f49d3aa97dbe30db6f058004a781a">CAUTH_BOOL</a>;</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; </div>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ <h2><a class="anchor" id="autotoc_md5"></a>
Credits</h2>
<dl class="section author"><dt>Author</dt><dd>Fábio Pereira da Silva </dd></dl>
<dl class="section date"><dt>Date</dt><dd>Jun 19 2022 </dd></dl>
<dl class="section version"><dt>Version</dt><dd>0.1.0 </dd></dl>
<dl class="section version"><dt>Version</dt><dd>0.2.1 </dd></dl>
<dl class="section copyright"><dt>Copyright</dt><dd>License MIT <a href="https://github.com/devfabiosilva/CAuth2/blob/master/LICENSE">see here</a></dd></dl>
<h2><a class="anchor" id="autotoc_md6"></a>
Contact</h2>
Expand Down
8 changes: 4 additions & 4 deletions include/cauth2_dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="https://github.com/devfabiosilva/CAuth2/blob/master/LICENSE">see here</a>
*
* ## Contact
Expand Down Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@

#define VERSION "0"
#define VERSION_MAJOR "2"
#define VERSION_MINOR "0"
#define VERSION_MINOR "1"

#define BUILD_YEAR "2022"
#define BUILD_MONTH "07"
#define BUILD_DAY "14"

#define BUILD_HOUR "1501"

#endif
#endif

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions test/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 637c6d6

Please sign in to comment.