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

net: sockets: tls: Implement DTLS Connection ID socket option #36738

Closed

Commits on Jul 5, 2021

  1. net: sockets: tls: Fix handshake on non blocking sockets

    The TLS/DTLS handshake in most cases is a blocking process, therefore
    the underlying socket should be in a blocking mode to prevent busy
    looping in the handshake thread. Fix this by clearing the O_NONBLOCK
    flag on the underlying socket before the handshake, and restoring it
    afterards.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    ef50c9b View commit details
    Browse the repository at this point in the history
  2. modules: mbedtls: Add Kconfig option to enable DTLS Connection ID

    Add Kconfig option for `config-tls-generic.h` to enable DTLS Connection
    ID extension.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    e9b2ebe View commit details
    Browse the repository at this point in the history
  3. net: sockets: tls: Implement TLS_DTLS_CONNECTION_ID option

    Implement TLS_DTLS_CONNECTION_ID socket option, which enables to use
    Connection ID extension for the DTLS session.
    
    The option allows to set the value and the length of the CID to use with
    `setsockopt()` function. Setting the CID length to 0, enables the
    extension but does not send the own CID to the peer, as described in the
    specification.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    f2078a5 View commit details
    Browse the repository at this point in the history