3215f6c4ff
SSLSocket: handle exceptions during protocol read/write operations
...
These protocol operations should not raise exceptions, but sometimes
they do. Catch the exception and extract the errno value if available.
At the same time, harmonize the argument types for the underlying C
routines
2024-06-12 16:41:19 -05:00
7969638740
SSLSocket: Add stream protocol
...
including select. This assumes that the SSL layer is readable/writable
exactly when the underlying socket is readable/writable.
2024-06-07 14:49:35 -05:00
Dan Halbert
747b7619ea
update headers of most CircuitPython-only files
2024-05-17 14:56:28 -04:00
e5f0579d6c
SSLSocket: implement setsockopt (untested)
2024-03-25 09:24:57 -05:00
8c5d9d28d8
ssl: make bind & listen into void functions (they throw exceptions)
2024-03-21 14:06:32 -05:00
b330989704
sslsocket: Simplify handling the timeout value
...
We're just going to pass it down to the underlying socket, so don't
parse it, multiply it, etc.
2024-03-21 13:54:40 -05:00
c793a021b8
ssl: work on anything implementing the socket protocol
...
In principle this allows core SSL code to be used with e.g., wiznet
or airlift sockets. It might actually be useful with wiznet ethernet devices
(it's probably not with airlift)
2024-03-21 13:54:40 -05:00
Scott Shawcroft
605c39c8db
Fix ssl.SSLSocket bind() error checking
...
Non-ssl sockets now return size_t error numbers, not bool.
Fixes #8947
2024-02-20 15:46:06 -08:00
9abe273afa
mbedtls: move to shared-module
...
this enables the implementation to be shared among ports.
2024-02-15 13:30:09 -06:00
dcb650c513
pico w: add ssl module
...
Note: at this time, the ssl module on pico_w never verifies the server
certificate. This means it does not actually provide a higher security
level than regular socket / http protocols.
2022-10-05 13:12:43 -04:00
Scott Shawcroft
f84cb94819
Remove OSError(0) and old network modules
...
The newer modules are `socketpool` and `ssl`.
Fixes #3924 , related to #2021 , closes #1880 , closes #2273 , closes #2274
2021-07-21 17:33:40 -07:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
Lucian Copeland
4d26ffb447
Make timeout core types consistent
2021-02-05 12:32:41 -05:00
Lucian Copeland
8277ffca86
Fix hash, close, error bugs
2021-02-01 11:04:12 -05:00
Lucian Copeland
9f34ec78c4
Separate Socket and SSLSocket, add LWIP connect
2021-01-25 17:07:25 -05:00