Skip to content

socketpool/ssl: refactor to use micropython-style "stream protocol", enable MICROPY_PY_IO_IOBASE #7009

Open
@jepler

Description

@jepler

After #7006 it would be possible to enable ssl without socketpool as a built-in module and instead use the "stream protocol" for ssl to perform operations like read/write/close on a socket.

If a different socket implementation such as https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k was changed to derive its sockets from io.IOBase, then its sockets could be successfully wrapped by an SSLContext.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions