-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
extmod/modssl_mbedtls: Add SSLContext methods. #11888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
c550e8f to
a336bd1
Compare
87613bb to
f6b8d50
Compare
e614752 to
17fac67
Compare
|
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 |
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]>
|
Follow in #13098 |
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