Now it should be using MG_TLS_MBED and MG_TLS_OPENSSL. Example: -DMG_TLS=MG_TLS_MBED -Imbedtls/include -lmbedtls -lmbedx509 -lmbedcrypto -Lmbedtls/library
I used the above method to complie the tcp example. It seemed that TLS is not working.
Need to replace the tcp:// of s_lsn and s_conn with https:// for TLS connection taking effect. TLS doesn't always carry http traffic, so it seems a little wired to me.
TLS-Build
I believe the contents of
https://mongoose.ws/documentation/tutorials/tls/#how-to-build
are outdated.MG_ENABLE_MBEDTLS
orMG_ENABLE_OPENSSL
doesn't exist inmongoose.h
any more.Now it should be using
MG_TLS_MBED
andMG_TLS_OPENSSL
.Example
: -DMG_TLS=MG_TLS_MBED -Imbedtls/include -lmbedtls -lmbedx509 -lmbedcrypto -Lmbedtls/libraryTLS-TCP example
I used the above method to complie the
tcp
example. It seemed that TLS is not working. Need to replace thetcp://
ofs_lsn
ands_conn
withhttps://
for TLS connection taking effect. TLS doesn't always carry http traffic, so it seems a little wired to me.BTW, love the Project. It helped me a lot.