]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Clean up a few further TODO(QUIC SERVER)
authorTomas Mraz <tomas@openssl.org>
Thu, 23 Jan 2025 16:42:56 +0000 (17:42 +0100)
committerNeil Horman <nhorman@openssl.org>
Mon, 17 Feb 2025 16:27:33 +0000 (11:27 -0500)
These are either already implemented or not relevant for
the QUIC server MVP.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26544)

include/internal/quic_engine.h
include/internal/quic_port.h
ssl/quic/quic_channel.c
ssl/quic/quic_impl.c

index b2c6b38f0d55af13b87211d7aa27edb7c21ff28c..17eb18bdbd4e557735955fe8262b781aacd572dc 100644 (file)
@@ -28,7 +28,7 @@
  * represents a single QUIC connection. All QUIC_PORT instances must belong
  * to a QUIC_ENGINE.
  *
- * TODO(QUIC SERVER): Currently a QUIC_PORT belongs to a single QUIC_CHANNEL.
+ * TODO(QUIC FUTURE): Currently a QUIC_PORT belongs to a single QUIC_CHANNEL.
  * This will cease to be the case once connection migration and/or multipath is
  * implemented, so in future a channel might be associated with multiple ports.
  *
index 6dda25db84ff15c245763459eb034892b5498f92..8465958a6f9bd45194c0e98deccf10163c3e7a1d 100644 (file)
@@ -85,7 +85,7 @@ QUIC_CHANNEL *ossl_quic_port_create_outgoing(QUIC_PORT *port, SSL *tls);
 /*
  * Create an incoming channel using this port.
  *
- * TODO(QUIC SERVER): temporary TSERVER use only - will be removed.
+ * TODO(QUIC FUTURE): temporary TSERVER use only - will be removed.
  */
 QUIC_CHANNEL *ossl_quic_port_create_incoming(QUIC_PORT *port, SSL *tls);
 
index d8ec096b34bae9ebbdb6edd861f90fac142d87c5..19d0513059d40039e1e0ab934d8a66e603b700a6 100644 (file)
 #include "quic_port_local.h"
 #include "quic_engine_local.h"
 
-/*
- * NOTE: While this channel implementation currently has basic server support,
- * this functionality has been implemented for internal testing purposes and is
- * not suitable for network use. In particular, it does not implement address
- * validation, anti-amplification or retry logic.
- *
- * TODO(QUIC SERVER): Implement address validation and anti-amplification
- * TODO(QUIC SERVER): Implement retry logic
- */
-
 #define INIT_CRYPTO_RECV_BUF_LEN    16384
 #define INIT_CRYPTO_SEND_BUF_LEN    16384
 #define INIT_APP_BUF_LEN             8192
@@ -1539,10 +1529,8 @@ static int ch_on_transport_params(const unsigned char *params,
             }
 
             /*
-             * We must ensure a client doesn't send them because we don't have
-             * processing for them.
-             *
-             * TODO(QUIC SERVER): remove this restriction
+             * RFC 9000 s. 18.2: This transport parameter MUST NOT be sent
+             * by a client but MAY be sent by a server.
              */
             if (ch->is_server) {
                 reason = TP_REASON_SERVER_ONLY("STATELESS_RESET_TOKEN");
index 0abc13126cbb35944d9c05700a58457ceedb8633..16b5fb0f3c5b7a31c04f3723acfae079165416d6 100644 (file)
@@ -594,7 +594,7 @@ SSL *ossl_quic_new(SSL_CTX *ctx)
         = ((ctx->domain_flags & SSL_DOMAIN_FLAG_THREAD_ASSISTED) != 0);
 #endif
 
-    qc->as_server       = 0; /* TODO(QUIC SERVER): add server support */
+    qc->as_server       = 0;
     qc->as_server_state = qc->as_server;
 
     if (!create_channel(qc, ctx))