Skip to content
代码片段 群组 项目
该项目从 https://github.com/Mbed-TLS/mbedtls 镜像。 拉取镜像更新于
  1. 8月 10, 2021
    • Jerry Yu's avatar
      fix test_suite_debug test fail · b19ccc39
      Jerry Yu 创作于
      
      Before `mbedtls_ssl_setup`, config functions should
      be called. Without it, `mbedtls_ssl_setup` will raise
      invalid value error.
      
      Change-Id: I46fdaa5e8eb83d06c620087a9e1e7e14e1c5d9b5
      Signed-off-by: default avatarJerry Yu <jerry.h.yu@arm.com>
      b19ccc39
    • Jerry Yu's avatar
      tests: Add negative version config tests. · c46e9b40
      Jerry Yu 创作于
      
      tls1.3 and tls1.2 can not be enabled at same
      time before #4832 resolved.
      
      And the test won't run into `handshake` stage, add
      `skip_handshak_check` function to skip it.
      
      Change-Id: I13f3b06b2f33b9c9beb8cac90f5fda41a4ed53f3
      Signed-off-by: default avatarJerry Yu <jerry.h.yu@arm.com>
      c46e9b40
    • Jerry Yu's avatar
      Add config check utils functions · 60835a88
      Jerry Yu 创作于
      
      Check configuration parameter in structure setup
      function to make sure the config data is available
      and valid.
      
      Current implementation checks the version config.
      Available version configs are
      - tls1_3 only
      - tls1_2 only
      
      issues: #4844
      
      Change-Id: Ia762bd3d817440ae130b45f19b80a2868afae924
      Signed-off-by: default avatarJerry Yu <jerry.h.yu@arm.com>
      60835a88
  2. 8月 09, 2021
  3. 8月 04, 2021
  4. 8月 03, 2021
  5. 8月 02, 2021
  6. 8月 01, 2021
  7. 7月 31, 2021
  8. 7月 30, 2021
  9. 7月 29, 2021
  10. 7月 27, 2021
  11. 7月 23, 2021
    • Ronald Cron's avatar
      Merge pull request #4701 from gilles-peskine-arm/make_generated_files-non_english-3.0 · 3c62693c
      Ronald Cron 创作于
      psa_generate_test: tweak MSVC detection to work with non-English Visual Studio
      3c62693c
    • Hanno Becker's avatar
      Store TLS version in SSL session structure · fadbdbb5
      Hanno Becker 创作于
      
      Instances of `mbedtls_ssl_session` represent data enabling session resumption.
      
      With the introduction of TLS 1.3, the format of this data changes. We therefore
      need TLS-version field as part of `mbedtlsl_ssl_session` which allows distinguish
      1.2 and 1.3 sessions.
      
      This commit introduces such a TLS-version field to mbedtls_ssl_session.
      
      The change has a few ramifications:
      
      - Session serialization/deserialization routines need to be adjusted.
      
        This is achieved by adding the TLS-version after the header of
        Mbed TLS version+config, and by having the subsequent structure
        of the serialized data depend on the value of this field.
      
        The details are described in terms of the RFC 8446 presentation language.
      
        The 1.2 session (de)serialization are moved into static helper functions,
        while the top-level session (de)serialization only parses the Mbed TLS
        version+config header and the TLS-version field, and dispatches according
        to the found version.
      
        This way, it will be easy to add support for TLS 1.3 sessions in the future.
      
      - Tests for session serialization need to be adjusted
      
      - Once we add support for TLS 1.3, with runtime negotiation of 1.2 vs. 1.3,
        we will need to have some logic comparing the TLS version of the proposed session
        to the negotiated TLS version. For now, however, we only support TLS 1.2,
        and no such logic is needed. Instead, we just store the TLS version in the
        session structure at the same point when we populate mbedtls_ssl_context.minor_ver.
      
      The change introduces some overlap between `mbedtls_ssl_session.minor_ver` and
      `mbedtls_ssl_context.minor_ver`, which should be studied and potentially resolved.
      However, with both fields being private and explicitly marked so, this can happen
      in a later change.
      
      Signed-off-by: default avatarHanno Becker <hanno.becker@arm.com>
      fadbdbb5
  12. 7月 22, 2021
  13. 7月 21, 2021
  14. 7月 20, 2021
  15. 7月 16, 2021
  16. 7月 15, 2021
加载中