]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic_tls: Make use of the QUIC V1 salt.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 6 Jul 2021 15:08:04 +0000 (17:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
This salt is used to derive the Initial secrets.

src/quic_tls.c

index c27946a438948d7ae78704ba1110b04a06883cb3..11d5875daebd134ddf88d538b9fac9faff6ec515 100644 (file)
@@ -228,7 +228,7 @@ int quic_derive_initial_secret(const EVP_MD *md,
                                const unsigned char *secret, size_t secret_sz)
 {
        if (!quic_hkdf_extract(md, initial_secret, &initial_secret_sz, secret, secret_sz,
-                              initial_salt, sizeof initial_salt))
+                              initial_salt_v1, sizeof initial_salt_v1))
                return 0;
 
        return 1;