Skip to content

Commit 088421e

Browse files
author
brentru
committed
add TLS_mode conntype, assertion for connecting to HTTPS
1 parent 30c9f0a commit 088421e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

adafruit_wiznet5k/adafruit_wiznet5k.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ class WIZNET5K: # pylint: disable=too-many-public-methods
151151

152152
TCP_MODE = const(0x21)
153153
UDP_MODE = const(0x02)
154+
TLS_MODE = const(0x03) # This is NOT currently implemented
154155

155156
# pylint: disable=too-many-arguments
156157
def __init__(self, spi_bus, cs, reset=None,

adafruit_wiznet5k/adafruit_wiznet5k_socket.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def connect(self, address, conntype=None):
141141
:param tuple address: Remote socket as a (host, port) tuple.
142142
143143
"""
144+
assert conntype != 0x03, "Error: SSL/TLS is not currently supported by CircuitPython."
144145
host, port = address
145146

146147
if hasattr(host, 'split'):

0 commit comments

Comments
 (0)