[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Building mbedtls using LWIP library
From: |
Jan Menzel |
Subject: |
Re: [lwip-users] Building mbedtls using LWIP library |
Date: |
Tue, 18 Apr 2017 11:31:20 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hi Shruthi!
I'm using mbedtls and lwip on an embedded devices so I can only help
integration both if there are no other tcp/ip-stacks around.
Basically mbedtls interfaces to any tcp/ip-stack using bsd-socket API.
This is archived using the file net.c, which comes with mbedtls such,
that it builds on multiple platforms. I'd suggest that you carefully
check that all calls to open/close/read/write are correctly linked to
lwip. There might be modifications needed - eventually also in lwip - to
not use the Linux stack. I think that should be all. Please make sure to
enable socked api. You might need to enable support for transmit/receive
timeouts and you might wont to make sure, that lwips errno can be/is
read insight net.c.
Please check the archive of this list as we had recently some
discussions regarding mbedtls and the configuration of lwip.
Best regards
Jan
On 18.04.2017 11:02, shruthi wrote:
> Hi,
>
> I am using the LWIP stack(1.4.0 version) as a *tap device (tap0)* on my
> Linux system. I have a simple TCP server-client application running on the
> LWIP stack. Now I want to add TLS over TCP, and I found that mbedTLS is one
> of the recommended libraries to add TLS support on LWIP. Could you please
> tell me how to integrate the two?
>
> I want to make the mbedTLS library use the LWIP library APIs instead of the
> Linux APIs. I am new to both these libraries and I am not sure what changes
> to make in the Makefiles to build them together. Any advice/suggestions
> would be appreciated.
>
> Regards,
> Shruthi
>
>
>
>
> --
> View this message in context:
> http://lwip.100.n7.nabble.com/Building-mbedtls-using-LWIP-library-tp29319.html
> Sent from the lwip-users mailing list archive at Nabble.com.
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/lwip-users
>
- [lwip-users] Building mbedtls using LWIP library, shruthi, 2017/04/18
- Re: [lwip-users] Building mbedtls using LWIP library,
Jan Menzel <=
- Re: [lwip-users] Building mbedtls using LWIP library, Noam Weissman, 2017/04/18
- Re: [lwip-users] Building mbedtls using LWIP library, Simon Goldschmidt, 2017/04/18
- Re: [lwip-users] Building mbedtls using LWIP library, Noam Weissman, 2017/04/18
- Re: [lwip-users] Building mbedtls using LWIP library, address@hidden, 2017/04/18
- Re: [lwip-users] Building mbedtls using LWIP library, shruthi, 2017/04/19
- Re: [lwip-users] Building mbedtls using LWIP library, Ajay Bhargav, 2017/04/19
- Re: [lwip-users] Building mbedtls using LWIP library, address@hidden, 2017/04/19
- Re: [lwip-users] Building mbedtls using LWIP library, shruthi, 2017/04/21
- Re: [lwip-users] Building mbedtls using LWIP library, Simon Goldschmidt, 2017/04/21
- Re: [lwip-users] Building mbedtls using LWIP library, shruthi, 2017/04/21