Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sockets: tls: Make secure sockets support posix APIs #11438

Merged

Commits on Dec 10, 2018

  1. lib: fdtable: Add function to retrieve fd vtable

    Add function that allows to obtain both object and vtable of the file
    descriptor.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    f8ce4ae View commit details
    Browse the repository at this point in the history
  2. net: sockets: Extend socket vtable

    This commit extends socket vtable, allowing to redirect socket calls to
    alternate implementations (e.g. TLS sockets).
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    0cecf80 View commit details
    Browse the repository at this point in the history
  3. net: sockets: tls: Implement vtable for TLS sockets

    Implement extended socket vtable for TLS sockets, therefore allowing to
    integrate the implementation with socket subsystem.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    d701b57 View commit details
    Browse the repository at this point in the history
  4. net: sockets: Rework poll to support ioctl helper commands

    This commit reworks socket poll implementation to support multiple
    socket implementations.
    
    To achieve that, two ioctl poll helper requests were added:
    ZFD_IOCTL_POLL_PREPARE and ZFD_IOCTL_POLL_UPDATE. The poll
    implementation calls ioctl with these requests for each socket
    requested in the fds table.
    
    The first request is responsible for preparing k_poll_event objects
    for specific socket. It can request to skip waiting in k_poll by
    returning EALREADY through errno.
    
    The latter request is responsible for processing outcome of k_poll for
    each socket. It can request to retry the k_poll by returning EAGAIN
    through errno.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Dec 10, 2018
    Configuration menu
    Copy the full SHA
    1b1611d View commit details
    Browse the repository at this point in the history