Commit Graph

29256 Commits

Author SHA1 Message Date
Jeff Epler
2dc283f578
close underlying socket object when closing ssl socket 2022-10-05 15:10:14 -05:00
Jeff Epler
4a9389d347
remove debug message 2022-10-05 14:57:04 -05:00
Jeff Epler
14f2309b6f
Enable more key exchange methods
This is intended (but not entirely verified) to match our esp32 builds.
It does fix accessing https://circuitpython.org, which failed before with
"MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE".

It still doesn't work on a personal website of mine with valid letsencrypt
certificate but I haven't verified whether it works on esp32s2 with CP.
That site only allows TLS 1.3, while this mbedtls only supports up to
1.2.
The version of mbedtls we adopted based on micropython's use has no
TLS 1.3 support, but the one in espressif esp-idf does.
2022-10-05 14:56:27 -05:00
Jeff Epler
fabfdcf6fe
More ssl work 2022-10-05 14:56:26 -05:00
Jeff Epler
944d388158
copy esp_crt_bundle.c from esp-idf@d51f7d8821 2022-10-05 14:56:26 -05:00
Jeff Epler
a64c1a11c5
move nina-fw certificates so it can be shared with other ports 2022-10-05 14:56:25 -05:00
Jeff Epler
905a5957b9
allow gen_crt_bundle to generate a .S file directly
.. this gets rid of one of the steps of converting it
2022-10-05 14:56:25 -05:00
Jeff Epler
09023abcd2
Update espressif function prototype to match 2022-10-05 14:56:25 -05:00
Jeff Epler
3667a0bf17
experimentally undo pin of typer & click 2022-10-05 14:56:24 -05:00
Jeff Epler
b47d1d777b
black and fix doc typo 2022-10-05 14:56:24 -05:00
Jeff Epler
b1ce1d05d7
Copy from esp-idf@d51f7d8821 2022-10-05 14:56:24 -05:00
Dan Halbert
91079279da Allow spaces before = in dotenv 2022-10-05 15:50:53 -04:00
Kyle Mohr
dd5f9411c8
Merge branch 'adafruit:main' into main 2022-10-05 13:44:12 -05:00
Jeff Epler
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
Jeff Epler
1d25049a7a
add mbedtls matching micropython @ v1.19.1-451-gbdbc44474 2022-10-05 10:03:44 -05:00
Jeff Epler
2bd50673b6
Finish adapting flash storage size
Before this, CIRCUITPY would start at 1MB anyway. This appeared to work
only because I hadn't checked the actual size of the CIRCUITPY drive,
and because until now the flash hadn't actually crossed that 1MB
boundary into CIRCUITPY storage.

WARNING: on pico_w, upgrading/downgrading CircuitPython across this commit
boundary will erase the CIRCUITPY filesystem. After this commit,
switching between pico and pico_w firmware will erase the CIRCUITPY
filesystem
2022-10-05 10:02:38 -05:00
MicroDev
18cee2ee8b
Merge pull request #6997 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-10-05 20:00:20 +05:30
Bill Sideris
e064500411
Translated using Weblate (Greek)
Currently translated at 18.5% (185 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/el/
2022-10-05 14:23:42 +02:00
Dan Halbert
b3ca6fd011
Merge pull request #6995 from dhalbert/missing-support-matrix-modules
add missing native modules to support matrix
2022-10-04 20:49:29 -04:00
Dan Halbert
ed87579a65 add missing native modules to support matrix 2022-10-04 19:22:18 -04:00
Dan Halbert
9292af57c0
Merge pull request #6991 from jepler/dotenv-test
Refactor dotenv module so that it can be tested on host (test fails)
2022-10-04 13:21:33 -04:00
Jeff Epler
718b8e706e
disable test e15 for now 2022-10-04 10:54:22 -05:00
Jeff Epler
52bca95208
Refactor dotenv module so that it can be tested on host
.. it needs to operate on a FILE* rather than FIL depending on
the build.

Note that this is comparing output to expected, not to cpython dotenv
package. Because run-tests.py starts the CPython interpreter with the
'-S' (skip site initialization) flag, pip-installed packages are
not available for import inside a test file. Instead, the exp
file is generated manually:
```
circuitpython/tests$ python3 circuitpython/dotenv_test.py > circuitpython/dotenv_test.py.exp
```

Unfortunately, the test fails on test e15:
```diff
FAILURE /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py
--- /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.exp	2022-10-04 09:48:16.307703128 -0500
+++ /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.out	2022-10-04 09:48:16.307703128 -0500
@@ -14,7 +14,7 @@
 line
 e13 e13value
 e14 None
-e15 e15value
+e15 None
 e16 #
 e17 def
 e18 #has a hash
```
2022-10-04 09:51:27 -05:00
microDev
2618e11002
use next update partition 2022-10-04 19:42:48 +05:30
Dan Halbert
b62f8b35e6
Merge pull request #6986 from dhalbert/ai-thinker-creation-ids-plus-misc-fixes
fix ai-thinker creation ids; fix some typos elsewhere
2022-10-04 09:40:00 -04:00
Dan Halbert
1c2d2c9be4
Merge pull request #6980 from MicroDev1/supervisor
Implement certain supervisor functions as properties
2022-10-04 08:54:11 -04:00
microDev
9fe7308b88
conditionally add storage extension 2022-10-04 17:26:28 +05:30
microDev
7d8ff20dac
add initial storage extension support 2022-10-04 17:25:48 +05:30
Kyle Mohr
02e115cbc2
Update mpconfigboard.mk 2022-10-04 00:03:59 -05:00
Kyle Mohr
b417eacc5e
Update ci_check_duplicate_usb_vid_pid.py 2022-10-04 00:03:38 -05:00
Kyle Mohr
330b96726a add newlines to end of files 2022-10-04 04:56:31 +00:00
Kyle Mohr
ba2368c59e
Utilize VID/PID from native USB port 2022-10-03 23:46:23 -05:00
Kyle Mohr
5268ef01c9
Utilize VID/PID from native USB port 2022-10-03 23:45:28 -05:00
Dan Halbert
1fd09cb6da
Merge pull request #6987 from dhalbert/dotenv-fixes
fix some dotenv parsing
2022-10-04 00:07:19 -04:00
Kyle Mohr
cffc1bfcab
sdkconfig didn't get committed for some reason... 2022-10-03 22:54:31 -05:00
Kyle Mohr
a948dc399b add esp32-s2-devkitc-1-n8r2 variant 2022-10-04 03:51:51 +00:00
MicroDev
4fd15acf77
implement suggested change
pass brightness value directly

Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-10-04 08:28:48 +05:30
Dan Halbert
6dc03ae3ce fix some dotenv parsing 2022-10-03 21:56:11 -04:00
Dan Halbert
7f72280693
Merge pull request #6982 from electronerdian/webworkflow_times
Fix mask for minutes field when computing modified_ns
2022-10-03 21:34:01 -04:00
Jeff Epler
abd02287e6
Merge pull request #6985 from PaulskPt/i2ctarget_doc_text_mod
I2ctarget doc function request: a) mods to doc text & function signature. b) small mod of the code
2022-10-03 15:08:21 -05:00
Jeff Epler
b1106b8f2f
restore pyboard symlink
This item is a UNIX symbolic link, and (except in the unlikely case
where the symlink is to a pathname that ends with a newline character!)
doesn't contain a newline.

It appears some well-intentioned tool failed to correctly handle this
file, and added a trailing newline as though it was a text file.
2022-10-03 15:05:30 -05:00
Dan Halbert
90f6096955 fix ai-thinker creation ids; fix some typos elsewhere 2022-10-03 15:29:03 -04:00
Paulus H.J. Schulinck
0f86f01515 Updates by local pre-commit
Pre-commit adjusted some line/file endings
2022-10-03 19:28:43 +01:00
Dan Halbert
e3054b3e55
Merge pull request #6984 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-10-03 11:00:21 -04:00
Bill Sideris
a599e66c33
Translated using Weblate (Greek)
Currently translated at 8.2% (82 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/el/
2022-10-03 15:20:50 +02:00
Paulus H.J. Schulinck
a5d7dbd116 Update .gitignore
I made an error. I deleted too much at the end of this file. Correction made. It is now (the Uncrustify formatting) as in branch 'main'
2022-10-03 13:29:29 +01:00
Paulus H.J. Schulinck
1e98f9125f Update .gitisnore
Removed the -# Uncrustify formatting for file
ports/broadcom/firmware

I don't know how it came into there. I didn't put it.
It is not my intention to change anything else than this branch to make 2 changes in  shared_bindings/I2CTarget module
2022-10-03 13:25:12 +01:00
Paulus H.J. Schulinck
89e0601a39 Update I2CTarget.c
Correction of the timeout value range needed to set the timeout to 'forever'.
The line 162 checks timeout for a value of 0 while the function definition defaults timeout to -1. In the current version of the code timeout is only checked for a value of 0 or in the 'else if' part for a value of > 0. So, values of <0 will not be taken in to account.  That is the reason of my modification.
2022-10-03 13:09:40 +01:00
Jonathan Myers
db28605add Fix mask for minutes field when computing modified_ns 2022-10-02 18:29:07 -07:00
Paulus H.J. Schulinck
041766351c Update I2CTarget.c
Correction in function request() doc function signature.
(after speaking with @jepler on Discord).

(@jepler: 'Circuitpython always has floats enabled')
2022-10-01 22:23:17 +01:00