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

Tls13 add early data indication #6486

Merged

Commits on Nov 14, 2022

  1. Add early data indication to client side

    Add fields to mbedtls_ssl_context
    Add write early data indication function
    Add check whether write early data indication
    Add early data option to ssl_client2
    Add test cases for early data
    
    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    0e97d4d View commit details
    Browse the repository at this point in the history
  2. Fix format issues in comments

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    911c0cc View commit details
    Browse the repository at this point in the history
  3. Remove useless early_secrets field

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    893ad81 View commit details
    Browse the repository at this point in the history
  4. Move ssl_tls13_has_configured_ticket() back to tls13 client

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    b781a23 View commit details
    Browse the repository at this point in the history
  5. Move EARLY_DATA_OFF/ON guard to ssl_misc.h

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    338f727 View commit details
    Browse the repository at this point in the history
  6. Define the EARLY_DATA_STATUS

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    7633281 View commit details
    Browse the repository at this point in the history
  7. Fix format issues

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    ecc2948 View commit details
    Browse the repository at this point in the history
  8. Update early data test cases

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    b0c32d8 View commit details
    Browse the repository at this point in the history
  9. Add session ticket related check when send early data

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    01323a4 View commit details
    Browse the repository at this point in the history
  10. Change function name ssl_tls13_early_data_has_valid_ticket

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    a341225 View commit details
    Browse the repository at this point in the history
  11. Address comments base on reviews

    Improve early data indication check
    Update test case to gnutls server
    
    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    f447e8a View commit details
    Browse the repository at this point in the history
  12. Address some format issues

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    a042b84 View commit details
    Browse the repository at this point in the history
  13. Update early data document and prerequisites check

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    0977716 View commit details
    Browse the repository at this point in the history
  14. Update early data test case with gnutls

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    50a4794 View commit details
    Browse the repository at this point in the history
  15. Update document base on comments

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    29ee43c View commit details
    Browse the repository at this point in the history
  16. Pend one alert in case wrong EXT_EARLY_DATA length

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    2d87a9e View commit details
    Browse the repository at this point in the history
  17. Change ticket_flag base on review

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    ae07cd9 View commit details
    Browse the repository at this point in the history
  18. Update early data doument and config dependencies

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    fe3483f View commit details
    Browse the repository at this point in the history
  19. Update ticket_flags related macros

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    de95604 View commit details
    Browse the repository at this point in the history
  20. Update documents and check

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    402bb1e View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. Enable/disable MBEDTLS_SSL_EARLY_DATA for cases in ssl-opt.sh

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    9a0aafb View commit details
    Browse the repository at this point in the history
  2. Add comments to fix mini format issue

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    72b9b17 View commit details
    Browse the repository at this point in the history
  3. Fix various issues cause rebase to latest code

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    2cd5ce0 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2022

  1. Update early data test cases with latest code message

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    2dbfeda View commit details
    Browse the repository at this point in the history
  2. Move early data test cases to tls13-misc.sh

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    f3cefb4 View commit details
    Browse the repository at this point in the history
  3. Update ticket flag macros

    Define the ALLOW_PSK_RESUMPTION and ALLOW_PSK_EPHEMERAL_RESUMPTION
    to the key exchange mode EXCHANGE_MODE_PSK and
    EXCHANGE_MODE_PSK_EPHEMERAL to facilate later check.
    Since they are 1( 1u<<0 ) and 4( 1u<<2 ), so define
    ALLOW_EARLY_DATA to 8( 1u<<3 ).
    
    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    51c5a8b View commit details
    Browse the repository at this point in the history
  4. Add EARLY_DATA guard to the early data extension in session ticket

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    0cc4320 View commit details
    Browse the repository at this point in the history
  5. Update enabled guards for early data cases

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 16, 2022
    Configuration menu
    Copy the full SHA
    e7bab00 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. Remove the fore_tls13 option case from client side

    Signed-off-by: Xiaokang Qian <[email protected]>
    xkqian committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    e9622ac View commit details
    Browse the repository at this point in the history