Repository navigation
Conversation
|
Code size report: |
Codecov Report
@@ Coverage Diff @@
## master #11888 +/- ##
==========================================
+ Coverage 98.38% 98.41% +0.02%
==========================================
Files 158 158
Lines 20898 20962 +64
==========================================
+ Hits 20561 20629 +68
+ Misses 337 333 -4
|
Carglglz
force-pushed
the
sslcontext
branch
3 times, most recently
from
June 28, 2023 00:47
c550e8f to
a336bd1
Compare
Carglglz
force-pushed
the
sslcontext
branch
4 times, most recently
from
July 4, 2023 04:14
87613bb to
f6b8d50
Compare
This was referenced Jul 4, 2023
Carglglz
force-pushed
the
sslcontext
branch
2 times, most recently
from
July 7, 2023 14:54
e614752 to
17fac67
Compare
Contributor
Author
|
Note that I've only enabled the extra methods in unix port, and I use the macro Also note that AFAIK without these extra methods, the implementation of |
Carglglz
force-pushed
the
sslcontext
branch
3 times, most recently
from
August 14, 2023 13:31
37a1ffc to
5c2a1f2
Compare
This commit adds a `# MICROPY_SSL_MBEDTLS_EXTRAS` macro that enables: 1) Methods to SSLContext class that match CPython signature: - `SSLContext.load_cert_chain(certfile, keyfile=)` - `SSLContext.load_verify_locations(cadata=)` - `SSLContext.get_ciphers()` --> ["CIPHERSUITE"] - `SSLContext.set_ciphers(["CIPHERSUITE"])` 2) `sslsocket.cipher()` to get current ciphersuite and protocol version. 3) `ssl.MBEDTLS_VERSION` string constant 4) Tests in `net_inet` and `multi_net` Signed-off-by: Carlos Gil <[email protected]>
Contributor
Author
|
Follow in #13098 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds a
# MICROPY_SSL_MBEDTLS_EXTRASmacro that enables:SSLContext.load_cert_chain(certfile, keyfile=)SSLContext.load_verify_locations(cadata=)SSLContext.get_ciphers()--> ["CIPHERSUITE"]SSLContext.set_ciphers(["CIPHERSUITE"])sslsocket.cipher()to get current ciphersuite and protocolversion.
ssl.MBEDTLS_VERSIONstring constantTests in
net_inetandmulti_net