summaryrefslogtreecommitdiffstatshomepage
path: root/extmod/btstack/btstack_hci_uart.h
diff options
context:
space:
mode:
authorCarlosgg <carlosgilglez@gmail.com>2022-01-28 04:42:46 +0000
committerDamien George <damien@micropython.org>2022-07-20 16:46:04 +1000
commitb41cfea02ab9f566785da5e5e0863d009f3ac527 (patch)
treee231bc4247d1731ce22c98e9fd2f279d3fd6caf0 /extmod/btstack/btstack_hci_uart.h
parent93a17b9581418c932d8cb3312040fdbaa04da5e0 (diff)
downloadmicropython-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