File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
ports/esp32s2/common-hal/ssl Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ void common_hal_ssl_sslcontext_construct(ssl_sslcontext_obj_t* self) {
38
38
ssl_sslsocket_obj_t * common_hal_ssl_sslcontext_wrap_socket (ssl_sslcontext_obj_t * self ,
39
39
socketpool_socket_obj_t * socket , bool server_side , const char * server_hostname ) {
40
40
41
- if (socket -> type != SOCK_STREAM || socket -> num != -1 ) {
41
+ if (socket -> type != SOCK_STREAM ) {
42
42
mp_raise_RuntimeError (translate ("Invalid socket for TLS" ));
43
43
}
44
44
Original file line number Diff line number Diff line change 38
38
#include "lib/netutils/netutils.h"
39
39
40
40
//| class SSLSocket:
41
- //| """Implements TLS security on a subset of `socketpool.socket ` functions. Cannot be created
42
- //| directly. Instead, call `context. wrap_socket` on an existing socket object.
41
+ //| """Implements TLS security on a subset of `socketpool.Socket ` functions. Cannot be created
42
+ //| directly. Instead, call `wrap_socket` on an existing socket object.
43
43
//|
44
44
//| Provides a subset of CPython's `ssl.SSLSocket` API. It only implements the versions of
45
45
//| recv that do not allocate bytes objects."""
You can’t perform that action at this time.
0 commit comments