* [PATCH] Fix missing `#include "missing.h"`.
@ 2021-02-04 9:29 Mauro Condarelli
2021-02-04 15:15 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Mauro Condarelli @ 2021-02-04 9:29 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1037 bytes --]
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.
Signed-off-by: Mauro Condarelli <mc5686@mclink.it>
---
ell/cert.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ell/cert.c b/ell/cert.c
index c26051f..b54c7b1 100644
--- a/ell/cert.c
+++ b/ell/cert.c
@@ -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
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix missing `#include "missing.h"`.
2021-02-04 9:29 [PATCH] Fix missing `#include "missing.h"` Mauro Condarelli
@ 2021-02-04 15:15 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2021-02-04 15:15 UTC (permalink / raw)
To: iwd
[-- Attachment #1: Type: text/plain, Size: 1115 bytes --]
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.
On 2/4/21 3:29 AM, Mauro Condarelli wrote:
> 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.
>
> Signed-off-by: Mauro Condarelli <mc5686@mclink.it>
We don't use the Signed-off-by tags in ell or iwd, so feel free to drop these.
> ---
> ell/cert.c | 1 +
> 1 file changed, 1 insertion(+)
>
Applied with a slight tweak to the commit description.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-04 15:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-04 9:29 [PATCH] Fix missing `#include "missing.h"` Mauro Condarelli
2021-02-04 15:15 ` Denis Kenzior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox