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

Fix handling of padded TLS fragments in handshake #58

Merged
merged 1 commit into from
Sep 11, 2018

Commits on Sep 11, 2018

  1. Fix handling of padded TLS fragments in handshake

    When multiple handshake messages are sent in a single fragment, there
    may be some padding (i.e. pkt_size will be larger than the amount of bytes
    processed).  When this happens, the old code would only advance the working
    pointer to the end of processed data, which would not be the start of the
    next packet per the sent pkt_size, causing handshake failure.
    
    Now simply advance the working pointer to the next packet irrespective
    of how many bytes in the current one were processed in the server_hello
    message.
    
    Also fix a CI problem introduced when the Arduino core common.sh started
    checking for a valid defined BUILD_TYPE.
    earlephilhower committed Sep 11, 2018
    Configuration menu
    Copy the full SHA
    1e70c67 View commit details
    Browse the repository at this point in the history