[openssl/openssl] 0513a3: Fix early_data age calculation

Matt Caswell noreply at github.com
Wed Mar 1 02:06:25 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 0513a38364a7a45c946fdd8f7d87b8a3ae01ffbb
      https://github.com/openssl/openssl/commit/0513a38364a7a45c946fdd8f7d87b8a3ae01ffbb
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M ssl/statem/extensions_srvr.c

  Log Message:
  -----------
  Fix early_data age calculation

The ticket_age/age_add values use ms granualarity. We were incorrectly
treating them as seconds and so the ticket was always being rejected for
early data. We also clarify a comment which could have been the source of
the confusion.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20387)


  Commit: 2be5065b0a5a4bfab7424fd8de07b62441be6468
      https://github.com/openssl/openssl/commit/2be5065b0a5a4bfab7424fd8de07b62441be6468
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-03-01 (Wed, 01 Mar 2023)

  Changed paths:
    M test/sslapitest.c

  Log Message:
  -----------
  Ensure we use a non-zero time for tickets in early data

Our tests run so quickly that the ticket age is virtually zero. This may
not show up problems in the age calculations, so we artificially add some
age to the tickets in some runs.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20387)


Compare: https://github.com/openssl/openssl/compare/3307338e2686...2be5065b0a5a


More information about the openssl-commits mailing list