<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/extmod/modussl_mbedtls.c, branch 3.0.0-alpha2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=3.0.0-alpha2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=3.0.0-alpha2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-10-30T04:41:37+00:00</updated>
<entry>
<title>extmod/modussl_mbedtls: Allow to compile with unix coverage build.</title>
<updated>2017-10-30T04:41:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-30T04:41:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=10b76a9620b7407ffed8366d71f5463496f98838'/>
<id>urn:sha1:10b76a9620b7407ffed8366d71f5463496f98838</id>
<content type='text'>
Fixes a few C warnings.  No functional changes.
</content>
</entry>
<entry>
<title>extmod/modussl: Add finaliser support for ussl objects.</title>
<updated>2017-10-30T04:25:32+00:00</updated>
<author>
<name>Eric Poulsen</name>
<email>eric@zyxod.com</email>
</author>
<published>2017-10-27T04:17:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=74ec52d85758ad9da7a3abb24257511b22d74964'/>
<id>urn:sha1:74ec52d85758ad9da7a3abb24257511b22d74964</id>
<content type='text'>
Per the comment found here
https://github.com/micropython/micropython-esp32/issues/209#issuecomment-339855157,
this patch adds finaliser code to prevent memory leaks from ussl objects,
which is especially useful when memory for a ussl context is allocated
outside the uPy heap.  This patch is in-line with the finaliser code found
in many modsocket implementations for various ports.

This feature is configured via MICROPY_PY_USSL_FINALISER and is disabled by
default because there may be issues using it when the ussl state *is*
allocated on the uPy heap, rather than externally.
</content>
</entry>
<entry>
<title>all: Remove inclusion of internal py header files.</title>
<updated>2017-10-04T01:37:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-10-04T01:37:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a3dc1b1957d2c96d7c60c2c629c95077b03488a1'/>
<id>urn:sha1:a3dc1b1957d2c96d7c60c2c629c95077b03488a1</id>
<content type='text'>
Header files that are considered internal to the py core and should not
normally be included directly are:
    py/nlr.h - internal nlr configuration and declarations
    py/bc0.h - contains bytecode macro definitions
    py/runtime0.h - contains basic runtime enums

Instead, the top-level header files to include are one of:
    py/obj.h - includes runtime0.h and defines everything to use the
        mp_obj_t type
    py/runtime.h - includes mpstate.h and hence nlr.h, obj.h, runtime0.h,
        and defines everything to use the general runtime support functions

Additional, specific headers (eg py/objlist.h) can be included if needed.
</content>
</entry>
<entry>
<title>extmod/modussl_mbedtls: Allow to compile with MBEDTLS_DEBUG_C disabled.</title>
<updated>2017-09-06T07:34:45+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-09-06T07:34:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=beeb7483d889f5880895ecdd8e7a354f16956037'/>
<id>urn:sha1:beeb7483d889f5880895ecdd8e7a354f16956037</id>
<content type='text'>
With MBEDTLS_DEBUG_C disabled the function mbedtls_debug_set_threshold()
doesn't exist.  There's also no need to call mbedtls_ssl_conf_dbg() so a
few bytes can be saved on disabling that and not needing the mbedtls_debug
callback.
</content>
</entry>
<entry>
<title>extmod/modussl_mbedtls.c: Add ussl.getpeercert() method.</title>
<updated>2017-08-16T05:01:00+00:00</updated>
<author>
<name>Eric Poulsen</name>
<email>eric@zyxod.com</email>
</author>
<published>2017-08-15T14:49:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d5191edf7ff81f5f07243cb2a318508c1e9cc5df'/>
<id>urn:sha1:d5191edf7ff81f5f07243cb2a318508c1e9cc5df</id>
<content type='text'>
Behaviour is as per CPython but only the binary form is implemented here.
A test is included.
</content>
</entry>
<entry>
<title>extmod/modussl_mbedtls: Implement non-blocking SSL sockets.</title>
<updated>2017-07-26T01:34:33+00:00</updated>
<author>
<name>Eric Poulsen</name>
<email>eric@zyxod.com</email>
</author>
<published>2017-07-21T17:30:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6b4d4a25ceb1b3f016f9e4954bc630e6a0b7167f'/>
<id>urn:sha1:6b4d4a25ceb1b3f016f9e4954bc630e6a0b7167f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod/modussl_mbedtls: Make socket.close() free all TLS resources.</title>
<updated>2017-07-25T04:00:45+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-07-25T04:00:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0893b273b9471acb02510820f61753501dc04219'/>
<id>urn:sha1:0893b273b9471acb02510820f61753501dc04219</id>
<content type='text'>
Also, use mp_stream_close() helper to close the underlying socket.
</content>
</entry>
<entry>
<title>extmod/modussl_mbedtls: When reading and peer wants to close, return 0.</title>
<updated>2017-07-25T01:53:26+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-03T04:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a10467b58ab92352217c7ab42eafd320bb671565'/>
<id>urn:sha1:a10467b58ab92352217c7ab42eafd320bb671565</id>
<content type='text'>
If this particular code is returned then there's no more data, it's not
really an error.
</content>
</entry>
<entry>
<title>all: Don't include system errno.h when it's not needed.</title>
<updated>2017-07-24T08:43:14+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-07-24T08:43:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=aa7be82a4dff59b22763abbe1bd5e74c0e37b453'/>
<id>urn:sha1:aa7be82a4dff59b22763abbe1bd5e74c0e37b453</id>
<content type='text'>
</content>
</entry>
<entry>
<title>extmod/modussl_mbedtls: Support server_side mode.</title>
<updated>2017-07-24T05:08:59+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-07-24T05:07:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=513dfcf4fe3277fa1cb1e383db0b60e4a3fc843b'/>
<id>urn:sha1:513dfcf4fe3277fa1cb1e383db0b60e4a3fc843b</id>
<content type='text'>
To use server_side mode one must pass valid values in the "key" and "cert"
parameters.
</content>
</entry>
</feed>
