diff options
author | Carlosgg <carlosgilglez@gmail.com> | 2022-01-28 04:42:46 +0000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-07-20 16:46:04 +1000 |
commit | b41cfea02ab9f566785da5e5e0863d009f3ac527 (patch) | |
tree | e231bc4247d1731ce22c98e9fd2f279d3fd6caf0 /extmod/btstack/btstack_hci_uart.h | |
parent | 93a17b9581418c932d8cb3312040fdbaa04da5e0 (diff) | |
download | micropython-b41cfea02ab9f566785da5e5e0863d009f3ac527.tar.gz micropython-b41cfea02ab9f566785da5e5e0863d009f3ac527.zip |
extmod/modussl_mbedtls: Implement cert_reqs and cadata arguments.
Add cert_reqs and cadata keyword-args to ssl.wrap_socket() and
ssl.CERT_NONE, ssl.CERT_OPTIONAL, ssl.CERT_REQUIRED constants to allow
certificate validation.
CPython doesn't accept cadata in ssl.wrap_socket(), but it does in
SSLContext.load_verify_locations(), so we use this name to at least match
the same name in load_verify_locations().
Add docs for these new arguments, as well as docs for the existing
server_hostname argument which is important for certificate validation.
Tests are added as well.
Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
Diffstat (limited to 'extmod/btstack/btstack_hci_uart.h')
0 files changed, 0 insertions, 0 deletions