Coder Social home page Coder Social logo

Add HTTPS support about inadyn HOT 5 CLOSED

troglobit avatar troglobit commented on July 17, 2024
Add HTTPS support

from inadyn.

Comments (5)

taem avatar taem commented on July 17, 2024

Hi,

Perhaps it is better to remove custom HTTP client code and use library like cURL? I guess many embedded device firmwares have cURL.

from inadyn.

troglobit avatar troglobit commented on July 17, 2024

Not so sure about that, many have it, but not all. At work we don't.

I'd rather like to find a way to house both support for liburl and our own.

from inadyn.

troglobit avatar troglobit commented on July 17, 2024

This is a hard one to crack. I guess most people will get upset if I don't chose their favorite SSL library or web crawler tool (wget/curl) ... but I'm actually looking at optional OpenSSL linking for HTTPS support.

https://github.com/openssl/openssl/blob/master/demos/ssl/cli.cpp

The code example isn't exactly bloody and if I do it right, to some extent, and wrap all necessary calls then other people can add GNU TLS support, PolarSSL support, or whatever they prefer. For me it's OpenSSL since that's what Westermo's WeOS currently has embedded in 12 MB of total (!) storage for our switches/routers. So, that's my motivation and seeing as nobody else has stepped up to the task and submitted a patch, that's what Inadyn will get :-)

from inadyn.

troglobit avatar troglobit commented on July 17, 2024

It works! I added an SSL module according to the example mentioned above and have tested it successfully against DynDNS and FreeDNS :-)

Will push later today.

from inadyn.

troglobit avatar troglobit commented on July 17, 2024

Fixed in 7be3304

from inadyn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.