~titusx/nginx/mainline

Viewing all changes in revision 7219.

  • Committer: Sergey Kandaurov
  • Date: 2023-10-20 14:05:07 UTC
  • Revision ID: git-v1:fffd2823ba8bddcdfdffca47990c73cd4298208d
QUIC: added safety belt to prevent using discarded keys.

In addition to triggering alert, it ensures that such packets won't be sent.

With the previous change that marks server keys as discarded by zeroing the
key lengh, it is now an error to send packets with discarded keys.  OpenSSL
based stacks tolerate such behaviour because key length isn't used in packet
protection, but BoringSSL will raise the UNSUPPORTED_KEY_SIZE cipher error.
It won't be possible to use discarded keys with reused crypto contexts as it
happens in subsequent changes.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: