]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
libtls: Use correct constant in error message
authorTobias Brunner <tobias@strongswan.org>
Mon, 29 Sep 2025 13:32:13 +0000 (15:32 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 2 Oct 2025 08:02:49 +0000 (10:02 +0200)
Closes strongswan/strongswan#2896

Fixes: e7313962808c ("tls-server: Check if peer sent hash and signature algorithms")
src/libtls/tls_server.c

index 3ad9fd2a5c847969ca64d13bc8d2a4a91e6c66e5..f70f0504e523e5318c28a1d19dffcfc64da199bd 100644 (file)
@@ -444,7 +444,7 @@ static status_t process_client_hello(private_tls_server_t *this,
        if (this->tls->get_version_max(this->tls) >= TLS_1_3 && !this->hashsig.len)
        {
                DBG1(DBG_TLS, "no %N extension received", tls_extension_names,
-                        TLS_MISSING_EXTENSION);
+                        TLS_EXT_SIGNATURE_ALGORITHMS);
                this->alert->add(this->alert, TLS_FATAL, TLS_MISSING_EXTENSION);
                return NEED_MORE;
        }