-->
Page 1 of 1

Namespace conflict with SSL library

PostPosted: Wed Apr 13, 2016 6:29 am
by smh
Excellent project, very useful.

I've included the ssl library in the LIBS variable in the Makefile of the esphttpd project and there is a namespace conflict with the ssl function called "base64_decode()" in the libesphttpd library; after renaming all instances and the function everything works fine. I suspect there will be a similar conflict with base64_encode() but I haven't done anything to cause it to happen yet.

I'm fairly new to the esp8266 and the C language so unsure if this is worth submitting a patch for or not.

-smh

Re: Namespace conflict with SSL library

PostPosted: Fri Apr 15, 2016 12:30 am
by Sprite_tm
If you link with SSL, I think esphttpd can use the base64[en|de]code in that. Maybe I should write some logic in the Makefile that only includes its own version when ssl isn't linked in.