Skip to contentSkip to conversation

Fix missing `#include "missing.h"`.

PATCH In review Mauro Condarelli 2 participants 2 messages Feb 4, 2021

lore
Share & tools
lore
#0 lore raw

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
index c26051f..b54c7b1 100644
@@ -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
#1 lore raw

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... no

and:

Quoted 8 lines

...
/* 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.

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