Fix memory checker for ESP32 compatibility

This commit is contained in:
Noah Laptop 2020-01-06 09:38:39 -08:00
parent 231da37762
commit 576e34487e
69 changed files with 83 additions and 118 deletions

View file

@ -25,7 +25,7 @@ before_install:
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sudo sh
- arduino-cli core update-index --additional-urls $ADDITIONAL_URLS
- arduino-cli core install arduino:samd -v
- arduino-cli core install adafruit:samd@1.5.6 -v --additional-urls $ADDITIONAL_URLS
- arduino-cli core install adafruit:samd -v --additional-urls $ADDITIONAL_URLS
- mkdir -p $HOME/Arduino/libraries
- git clone https://github.com/OPEnSLab-OSU/EthernetLarge.git $HOME/Arduino/libraries/EthernetLarge
install:

View file

@ -1,5 +1,5 @@
name=SSLClient
version=1.4.6
version=1.4.7
author=Noah Koontz <koontzn@oregonstate.edu>
maintainer=OPEnS Lab
sentence=Arduino library to add SSL functionality to any Client class

View file

@ -8,7 +8,7 @@ You can also view this README in [doxygen](https://openslab-osu.github.io/SSLCli
SSLClient is a simple library to add [TLS 1.2](https://www.websecurity.symantec.com/security-topics/what-is-ssl-tls-https) functionality to any network library implementing the [Arduino Client interface](https://www.arduino.cc/en/Reference/ClientConstructor), including the Arduino [EthernetClient](https://www.arduino.cc/en/Reference/EthernetClient) and [WiFiClient](https://www.arduino.cc/en/Reference/WiFiClient) classes (though it is better to prefer WiFClient.connectSSL if implemented). In other words, SSLClient implements encrypted communication through SSL on devices that do not otherwise support it.
SSLClient has been tested on the SAMD21 and STM32 (in progress). SSClient does not currently support the ESP8266/ESP32 family (see [this issue](https://github.com/OPEnSLab-OSU/SSLClient/issues/5#issuecomment-569968546)).
SSLClient has been tested on the SAMD21, ESP32, and STM32 (in progress). SSClient does not currently support the ESP8266 (see [this issue](https://github.com/OPEnSLab-OSU/SSLClient/issues/5#issuecomment-569968546)).
## Overview

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>
@ -87,35 +87,12 @@ $(document).ready(function(){initNavTree('_s_s_l_client_8cpp.html','');});
</div>
<div class="header">
<div class="summary">
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">SSLClient.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_s_s_l_client_8h_source.html">SSLClient.h</a>&quot;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ad193a2cc121e0d4614a1c21eb463fb56"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_s_s_l_client_8cpp.html#ad193a2cc121e0d4614a1c21eb463fb56">__brkval</a></td></tr>
<tr class="separator:ad193a2cc121e0d4614a1c21eb463fb56"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Variable Documentation</h2>
<a id="ad193a2cc121e0d4614a1c21eb463fb56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad193a2cc121e0d4614a1c21eb463fb56">&#9670;&nbsp;</a></span>__brkval</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* __brkval</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
</div><!-- contents -->
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

File diff suppressed because one or more lines are too long

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -1,7 +1,7 @@
var dir_68267d1309a1af8e8297ef4c3efbcdba =
[
[ "ec_prime_fast_256.c", "ec__prime__fast__256_8c.html", "ec__prime__fast__256_8c" ],
[ "SSLClient.cpp", "_s_s_l_client_8cpp.html", "_s_s_l_client_8cpp" ],
[ "SSLClient.cpp", "_s_s_l_client_8cpp.html", null ],
[ "SSLClient.h", "_s_s_l_client_8h.html", [
[ "SSLClient", "class_s_s_l_client.html", "class_s_s_l_client" ]
] ],

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>
@ -88,9 +88,6 @@ $(document).ready(function(){initNavTree('globals.html','');});
<div class="contents">
<div class="textblock">Here is a list of all file members with links to the files they belong to:</div><ul>
<li>__brkval
: <a class="el" href="_s_s_l_client_8cpp.html#ad193a2cc121e0d4614a1c21eb463fb56">SSLClient.cpp</a>
</li>
<li>__TIME_DAYS__
: <a class="el" href="time__macros_8h.html#a7f2cdee2eebbccd45c179a50a0bbabcf">time_macros.h</a>
</li>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>
@ -88,9 +88,6 @@ $(document).ready(function(){initNavTree('globals_vars.html','');});
<div class="contents">
&#160;<ul>
<li>__brkval
: <a class="el" href="_s_s_l_client_8cpp.html#ad193a2cc121e0d4614a1c21eb463fb56">SSLClient.cpp</a>
</li>
<li>br_ec_prime_fast_256
: <a class="el" href="ec__prime__fast__256_8c.html#aedcd6aae4367c3fdfe7db296b4da85ab">ec_prime_fast_256.c</a>
</li>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>
@ -96,6 +96,7 @@ $(document).ready(function(){initNavTree('index.html','');});
<p><b><a class="el" href="class_s_s_l_client.html" title="The main SSLClient class. Check out README.md for more info.">SSLClient</a> requires at least 110kb flash and 7kb RAM, and will not compile otherwise. This means that most Arduino boards are not supported. Check your board's specifications before attempting to use this library.</b></p>
<p>You can also view this README in <a href="https://openslab-osu.github.io/SSLClient/html/index.html">doxygen</a>.</p>
<p><a class="el" href="class_s_s_l_client.html" title="The main SSLClient class. Check out README.md for more info.">SSLClient</a> is a simple library to add <a href="https://www.websecurity.symantec.com/security-topics/what-is-ssl-tls-https">TLS 1.2</a> functionality to any network library implementing the <a href="https://www.arduino.cc/en/Reference/ClientConstructor">Arduino Client interface</a>, including the Arduino <a href="https://www.arduino.cc/en/Reference/EthernetClient">EthernetClient</a> and <a href="https://www.arduino.cc/en/Reference/WiFiClient">WiFiClient</a> classes (though it is better to prefer WiFClient.connectSSL if implemented). In other words, <a class="el" href="class_s_s_l_client.html" title="The main SSLClient class. Check out README.md for more info.">SSLClient</a> implements encrypted communication through SSL on devices that do not otherwise support it.</p>
<p><a class="el" href="class_s_s_l_client.html" title="The main SSLClient class. Check out README.md for more info.">SSLClient</a> has been tested on the SAMD21, ESP32, and STM32 (in progress). SSClient does not currently support the ESP8266 (see <a href="https://github.com/OPEnSLab-OSU/SSLClient/issues/5#issuecomment-569968546">this issue</a>).</p>
<h2>Overview</h2>
<p>Using <a class="el" href="class_s_s_l_client.html" title="The main SSLClient class. Check out README.md for more info.">SSLClient</a> should be similar to using any other Arduino-based Client class, since this library was developed around compatibility with <a href="https://www.arduino.cc/en/Reference/EthernetClient">EthernetClient</a>. There are a few extra things, however, that you will need to get started:</p>
<ol type="1">

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -1,7 +1,6 @@
var NAVTREEINDEX0 =
{
"_s_s_l_client_8cpp.html":[3,0,2,1],
"_s_s_l_client_8cpp.html#ad193a2cc121e0d4614a1c21eb463fb56":[3,0,2,1,0],
"_s_s_l_client_8h.html":[3,0,2,2],
"_s_s_l_client_8h_source.html":[3,0,2,2],
"_s_s_l_client_parameters_8h.html":[3,0,2,3],

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -1,6 +1,5 @@
var searchData=
[
['_5f_5fbrkval',['__brkval',['../_s_s_l_client_8cpp.html#ad193a2cc121e0d4614a1c21eb463fb56',1,'SSLClient.cpp']]],
['_5f_5ftime_5fdays_5f_5f',['__TIME_DAYS__',['../time__macros_8h.html#a7f2cdee2eebbccd45c179a50a0bbabcf',1,'time_macros.h']]],
['_5f_5ftime_5fhours_5f_5f',['__TIME_HOURS__',['../time__macros_8h.html#a2488d1ddab7e5fa119da3421462231c4',1,'time_macros.h']]],
['_5f_5ftime_5fminutes_5f_5f',['__TIME_MINUTES__',['../time__macros_8h.html#ab3592442029a102b388fafeadc4a6ab8',1,'time_macros.h']]],

View file

@ -5,7 +5,7 @@ var indexSectionsWithContent =
2: "s",
3: "cerst",
4: "abcfgmoprstw",
5: "_bceiv",
5: "bceiv",
6: "de",
7: "s",
8: "_cgpstu",

View file

@ -1,4 +1,4 @@
var searchData=
[
['_5f_5fbrkval',['__brkval',['../_s_s_l_client_8cpp.html#ad193a2cc121e0d4614a1c21eb463fb56',1,'SSLClient.cpp']]]
['br_5fec_5fprime_5ffast_5f256',['br_ec_prime_fast_256',['../ec__prime__fast__256_8c.html#aedcd6aae4367c3fdfe7db296b4da85ab',1,'ec_prime_fast_256.c']]]
];

View file

@ -1,4 +1,5 @@
var searchData=
[
['br_5fec_5fprime_5ffast_5f256',['br_ec_prime_fast_256',['../ec__prime__fast__256_8c.html#aedcd6aae4367c3fdfe7db296b4da85ab',1,'ec_prime_fast_256.c']]]
['chain_5flen',['chain_len',['../struct_s_s_l_client_parameters.html#aa523f407ac673da95bf651617fbf94b2',1,'SSLClientParameters']]],
['client_5fcert_5fchain',['client_cert_chain',['../struct_s_s_l_client_parameters.html#a3e0440790d1acdee221b8ef6be6def95',1,'SSLClientParameters']]]
];

View file

@ -1,5 +1,4 @@
var searchData=
[
['chain_5flen',['chain_len',['../struct_s_s_l_client_parameters.html#aa523f407ac673da95bf651617fbf94b2',1,'SSLClientParameters']]],
['client_5fcert_5fchain',['client_cert_chain',['../struct_s_s_l_client_parameters.html#a3e0440790d1acdee221b8ef6be6def95',1,'SSLClientParameters']]]
['ec_5fkey',['ec_key',['../struct_s_s_l_client_parameters.html#aca2dba04e30c8d7b962add0c353fc449',1,'SSLClientParameters']]]
];

View file

@ -1,4 +1,4 @@
var searchData=
[
['ec_5fkey',['ec_key',['../struct_s_s_l_client_parameters.html#aca2dba04e30c8d7b962add0c353fc449',1,'SSLClientParameters']]]
['index',['index',['../structssl__pem__decode__state.html#a8abbaad636bfcf50ef38f529e3cfd5f3',1,'ssl_pem_decode_state']]]
];

View file

@ -1,4 +1,4 @@
var searchData=
[
['index',['index',['../structssl__pem__decode__state.html#a8abbaad636bfcf50ef38f529e3cfd5f3',1,'ssl_pem_decode_state']]]
['vect',['vect',['../structssl__pem__decode__state.html#a95f2366376d5f958f9bc1e859b59bae9',1,'ssl_pem_decode_state']]]
];

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -30,7 +30,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">SSLClient
&#160;<span id="projectnumber">v1.4.6</span>
&#160;<span id="projectnumber">v1.4.7</span>
</div>
<div id="projectbrief">Add TLS 1.2 functionality to any network library.</div>
</td>

View file

@ -1,5 +1,5 @@
name=SSLClient
version=1.4.6
version=1.4.7
author=Noah Koontz <koontzn@oregonstate.edu>
maintainer=OPEnS Lab
sentence=Arduino library to add SSL functionality to any Client class

View file

@ -30,13 +30,10 @@ static constexpr auto VECTKEY_MASK = (0x0000ffffUL);
(*(uint32_t*)0xe000ed0cUL)=((*(uint32_t*)0xe000ed0cUL)&VECTKEY_MASK)|VECTKEY|SYSRESETREQ;
while(1) { }
}
#endif
#ifdef __arm__
// should use uinstd.h to define sbrk but Due causes a conflict
extern "C" char* sbrk(int incr);
#elif defined(ESP8266) // esp8266
#define SYSTEM_STACK_END_ADDRESS 0x3FFFC000
#else // __ARM__
extern char *__brkval;
#endif // __arm__
@ -46,15 +43,13 @@ static int freeMemory() {
char top;
#ifdef __arm__
return &top - reinterpret_cast<char*>(sbrk(0));
#elif defined(ESP8266) // ESP8266
register volatile uint32_t stackAddress asm("a1");
return stackAddress-SYSTEM_STACK_END_ADDRESS;
#elif defined(CORE_TEENSY) || (ARDUINO > 103 && ARDUINO != 151)
return &top - __brkval;
#else // __arm__
return __brkval ? &top - __brkval : &top - __malloc_heap_start;
#endif // __arm__
}
#endif // ARDUINO_ARCH_SAMD
/* see SSLClient.h */
SSLClient::SSLClient( Client& client,
@ -565,8 +560,8 @@ unsigned SSLClient::m_update_engine() {
// do we have the record you're looking for?
const auto avail = get_arduino_client().available();
if (avail > 0) {
int mem = freeMemory();
#if defined(ARDUINO_ARCH_SAMD)
int mem = freeMemory();
// check for a stack overflow
// if the stack overflows we basically have to crash, and
// hope the user is ok with that
@ -576,7 +571,6 @@ unsigned SSLClient::m_update_engine() {
// software reset
RESET();
}
#endif
// debug info
m_info("Memory: ", func_name);
m_info(mem, func_name);
@ -590,6 +584,7 @@ unsigned SSLClient::m_update_engine() {
stop();
return 0;
}
#endif
// I suppose so!
int rlen = get_arduino_client().read(buf, avail < len ? avail : len);
if (rlen <= 0) {