]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wolfSSL: Better error message in pbkdf2_sha1() for FIPS password failure
authorJuliusz Sosinowicz <juliusz@wolfssl.com>
Wed, 8 Mar 2023 17:18:46 +0000 (18:18 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 4 Nov 2023 16:18:25 +0000 (18:18 +0200)
Signed-off-by: Juliusz Sosinowicz <juliusz@wolfssl.com>
src/crypto/crypto_wolfssl.c

index 45d381063647ff48cc324b5d7a757bebfeb17a72..e84e02a421155230d72939292a808525717c05d5 100644 (file)
@@ -420,9 +420,8 @@ int pbkdf2_sha1(const char *passphrase, const u8 *ssid, size_t ssid_len,
                        ssid, ssid_len, iterations, buflen, WC_SHA);
        if (ret != 0) {
                if (ret == HMAC_MIN_KEYLEN_E) {
-                       wpa_printf(MSG_ERROR,
-                                  "wolfSSL: Password is too short. Make sure your password is at least %d characters long. This is a requirement for FIPS builds.",
-                                  HMAC_FIPS_MIN_KEY);
+                       LOG_WOLF_ERROR_VA("wolfSSL: Password is too short. Make sure your password is at least %d characters long. This is a requirement for FIPS builds.",
+                                         HMAC_FIPS_MIN_KEY);
                }
                return -1;
        }