Fix missing `#include "missing.h"`.
PATCH 1/1 Fix missing `#include "missing.h"`.
If explicit_bzero() is not available (e.g.: with uClibc) build fails because of:
ell/cert.c: In function ‘cert_key_from_pkcs8_encrypted_private_key_info’:ell/cert.c:665:2: warning: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]
665 | explicit_bzero(decrypted, data_len);
| ^~~~~~~~~~~~~~in spite of correct detection:
checking for explicit_bzero... no
and:
...
/* Define to 1 if you have the `explicit_bzero' function. */ /* #undef HAVE_EXPLICIT_BZERO */
...
Fix is adding #include "missing.h" as it is done in simila files.
--- ell/cert.c | 1 + 1 file changed, 1 insertion(+)
ell/cert.c +1 -0
@@ -33,6 +33,7 @@#include "pem-private.h" #include "cert.h" #include "cert-private.h" +#include "missing.h" #define X509_CERTIFICATE_POS 0#define X509_TBSCERTIFICATE_POS 0
Signature · 1 line
2.25.1
Hi Mauro,
Patches against ell should go to ell(a)lists.01.org. But since this is such a trivial one, I'll take care of it.
Quoted 14 lines · Mauro Condarelli
If
explicit_bzero()is not available (e.g.: with uClibc) build fails because of:
ell/cert.c: In function ‘cert_key_from_pkcs8_encrypted_private_key_info’:ell/cert.c:665:2: warning: implicit declaration of function ‘explicit_bzero’ [-Wimplicit-function-declaration]665 | explicit_bzero(decrypted, data_len); | ^~~~~~~~~~~~~~in spite of correct detection:
checking for
explicit_bzero... noand:
Quoted 8 lines
...
/* Define to 1 if you have the `explicit_bzero' function. */ /* #undefHAVE_EXPLICIT_BZERO*/
...Fix is adding
#include "missing.h"as it is done in simila files.Signed-off-by Mauro Condarelli <[email protected]>
We don't use the Signed-off-by tags in ell or iwd, so feel free to drop these.
Quoted 4 lines
--- ell/cert.c | 1 + 1 file changed, 1 insertion(+)
Applied with a slight tweak to the commit description.
Regards,
-Denis