]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
quic: using #defined constant rather than a magic number
authorPauli <pauli@openssl.org>
Tue, 25 Jul 2023 02:06:45 +0000 (12:06 +1000)
committerPauli <pauli@openssl.org>
Fri, 4 Aug 2023 01:55:45 +0000 (11:55 +1000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21429)

include/internal/quic_wire.h

index d6423415eaf7b9933ccf2bdb51a482a14072d621..ee8f7e76cb64e8c97ef38fd5b3721b47e3e7fa9e 100644 (file)
@@ -209,7 +209,7 @@ typedef struct ossl_quic_frame_new_conn_id_st {
     uint64_t              seq_num;
     uint64_t              retire_prior_to;
     QUIC_CONN_ID          conn_id;
-    unsigned char         stateless_reset_token[16];
+    unsigned char         stateless_reset_token[QUIC_STATELESS_RESET_TOKEN_LEN];
 } OSSL_QUIC_FRAME_NEW_CONN_ID;
 
 /* QUIC Frame: CONNECTION_CLOSE */