[PATCH 1/3] hostapd: update to 2022-05-08

Stefan Lippers-Hollmann s.l-h at gmx.de
Sat Jun 11 18:29:34 PDT 2022


Hi

On 2022-06-12, Stefan Lippers-Hollmann wrote:
> On 2022-06-07, David Bauer wrote:
> > Update hostapd to Git HEAD from 2022-05-08. This allows us to take
> > advantage of background radar-detection ad well as BSS color collision.
>
> I'm noticing a build failure for wpad-full-openssl since this patch
> series went in, Debian/ unstable build host (x86_64), x86_64 build
> target:

Looking into this further suggests OPENSSL_NO_DEPRECATED=y being the
cause of this build failure

[...]
> ../src/crypto/crypto_openssl.c: In function 'crypto_rsa_oaep_sha256_encrypt':
> ../src/crypto/crypto_openssl.c:4003:13: warning: implicit declaration of function 'EVP_PKEY_CTX_set_rsa_padding'; did you mean 'EVP_PKEY_CTX_set_dh_pad'? [-Wimplicit-function-declaration]
>  4003 |             EVP_PKEY_CTX_set_rsa_padding(pkctx, RSA_PKCS1_OAEP_PADDING) <= 0 ||
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |             EVP_PKEY_CTX_set_dh_pad
> ../src/crypto/crypto_openssl.c:4003:49: error: 'RSA_PKCS1_OAEP_PADDING' undeclared (first use in this function)
>  4003 |             EVP_PKEY_CTX_set_rsa_padding(pkctx, RSA_PKCS1_OAEP_PADDING) <= 0 ||
>       |                                                 ^~~~~~~~~~~~~~~~~~~~~~
> ../src/crypto/crypto_openssl.c:4003:49: note: each undeclared identifier is reported only once for each function it appears in
> ../src/crypto/crypto_openssl.c:4004:13: warning: implicit declaration of function 'EVP_PKEY_CTX_set_rsa_oaep_md'; did you mean 'EVP_PKEY_CTX_set_dh_kdf_md'? [-Wimplicit-function-declaration]
>  4004 |             EVP_PKEY_CTX_set_rsa_oaep_md(pkctx, EVP_sha256()) <= 0 ||
>       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>       |             EVP_PKEY_CTX_set_dh_kdf_md
> ../src/crypto/crypto_openssl.c: In function 'crypto_rsa_oaep_sha256_decrypt':
> ../src/crypto/crypto_openssl.c:4040:49: error: 'RSA_PKCS1_OAEP_PADDING' undeclared (first use in this function)
>  4040 |             EVP_PKEY_CTX_set_rsa_padding(pkctx, RSA_PKCS1_OAEP_PADDING) <= 0 ||
>       |                                                 ^~~~~~~~~~~~~~~~~~~~~~
> make[4]: *** [../src/build.rules:86: /tmp/pkg/openwrt/build_dir/target-x86_64_musl/hostapd-wpad-full-openssl/hostapd-2022-05-08-b859b9bc/build/hostapd/src/crypto/crypto_openssl.o] Error 1

[...]

> CONFIG_OPENSSL_NO_DEPRECATED=y
> # CONFIG_OPENSSL_WITH_DEPRECATED is not set

and indeed, setting

CONFIG_OPENSSL_WITH_DEPRECATED=y
# CONFIG_OPENSSL_NO_DEPRECATED is not set

instead avoids the build failure.

Sorry for the noise.

Regards
	Stefan Lippers-Hollmann



More information about the openwrt-devel mailing list