diff mbox series

[1/1] mongoose: ensure MG_ENABLE_SSL is always defined

Message ID 20221213202053.2283426-1-james.hilliard1@gmail.com
State Accepted
Delegated to: Stefano Babic
Headers show
Series [1/1] mongoose: ensure MG_ENABLE_SSL is always defined | expand

Commit Message

James Hilliard Dec. 13, 2022, 8:20 p.m. UTC
This was previously defined in mongoose.h but needs to be
defined in mongoose_interface.c as well after the mongoose 7.8
update.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
 mongoose/mongoose_interface.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Stefano Babic Dec. 15, 2022, 6:11 p.m. UTC | #1
Hi James,

On 13.12.22 15:20, James Hilliard wrote:
> This was previously defined in mongoose.h but needs to be
> defined in mongoose_interface.c as well after the mongoose 7.8
> update.
> 
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
>   mongoose/mongoose_interface.c | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c
> index 71c394f..c151394 100644
> --- a/mongoose/mongoose_interface.c
> +++ b/mongoose/mongoose_interface.c
> @@ -33,6 +33,10 @@
>   #include "mongoose_multipart.h"
>   #include "util.h"
>   
> +#ifndef MG_ENABLE_SSL
> +#define MG_ENABLE_SSL 0
> +#endif
> +
>   #define MG_PORT "8080"
>   #define MG_ROOT "."
>   

Reviewedby: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
Stefano Babic Jan. 22, 2023, 5:53 p.m. UTC | #2
> This was previously defined in mongoose.h but needs to be
> defined in mongoose_interface.c as well after the mongoose 7.8
> update.
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Applied to swupdate, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c
index 71c394f..c151394 100644
--- a/mongoose/mongoose_interface.c
+++ b/mongoose/mongoose_interface.c
@@ -33,6 +33,10 @@ 
 #include "mongoose_multipart.h"
 #include "util.h"
 
+#ifndef MG_ENABLE_SSL
+#define MG_ENABLE_SSL 0
+#endif
+
 #define MG_PORT "8080"
 #define MG_ROOT "."