]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC CHANNEL: Revise inaccurate comments
authorHugo Landau <hlandau@openssl.org>
Wed, 30 Nov 2022 07:57:55 +0000 (07:57 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 13 Jan 2023 13:20:19 +0000 (13:20 +0000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)

ssl/quic/quic_channel.c
ssl/quic/quic_channel_local.h

index b0752cda7905ab8155905af42daf3259162b9e9e..87406f4ee355624915e45e7ef240cf55c79280b0 100644 (file)
@@ -1529,7 +1529,7 @@ int ossl_quic_channel_on_handshake_confirmed(QUIC_CHANNEL *ch)
  *   - If we are already TERMINATED this is a no-op.
  *
  *   - If we are TERMINATING - CLOSING and we have now got a CONNECTION_CLOSE
- *     from the peer (tcause->remote == 1), we move to TERMINATING - CLOSING.
+ *     from the peer (tcause->remote == 1), we move to TERMINATING - DRAINING.
  *
  *   - If we are TERMINATING - DRAINING, we remain here until the terminating
  *     timer expires.
index 269781688f6e493fdf7baa81ad236a36ae31bd2c..a16422e6e1957e58b8eb3648bdf6dd66807e112b 100644 (file)
@@ -246,9 +246,12 @@ struct quic_channel_st {
     unsigned int                    have_qsm                : 1;
 
     /*
-     * Preferred EL for transmission. This is not strictly needed as it can be
-     * inferred from what keys we have provisioned, but makes determining the
-     * current EL simpler and faster.
+     * Preferred ELs for transmission and reception. This is not strictly needed
+     * as it can be inferred from what keys we have provisioned, but makes
+     * determining the current EL simpler and faster. A separate EL for
+     * transmission and reception is not strictly necessary but makes things
+     * easier for interoperation with the handshake layer, which likes to invoke
+     * the yield secret callback at different times for TX and RX.
      */
     unsigned int                    tx_enc_level            : 3;
     unsigned int                    rx_enc_level            : 3;