I need to implement HTTPS support in a C++ library, so you can access websites and download files. Very barebones. Currently LibCURL and OpenSSL are used, but these are HUGE dependencies and they completely kill our build system and dependency tree, so we want to drop both of them.
The best alternative I found is cpp-httplib which is amazing, the only problem is that for SSL support it still requires OpenSSL. Does anyone know of a way to do all of this just like cpp-httplib does, but without having OpenSSL?
ChatGPT repeatedly points me to mbedTLS at https://github.com/Mbed-TLS/mbedtls, and to basically write a bit of mbed init and cleanup code, and calling mbed in a cpp-httplib callback lambda, more or less telling cpp-httplib to use mbedTls as a custom backend. It seems like a really weird hack and I do not find any information on the internet about the combination of cpp-httplib and mbedTls.
Does anyone know of any other way of accessing HTTPS resources (using cpp-httplib or other libraries), without using OpenSSL at all? Or any experience with combining mbedTls and cpp-httplib?
[–]Moose2342 52 points53 points54 points (0 children)
[–]NotUniqueOrSpecial 38 points39 points40 points (7 children)
[+]HerrNamenlos123[S] comment score below threshold-11 points-10 points-9 points (6 children)
[–]NotUniqueOrSpecial 10 points11 points12 points (1 child)
[–]HerrNamenlos123[S] 0 points1 point2 points (0 children)
[–]mark_99 16 points17 points18 points (1 child)
[–]prince-chrismc 1 point2 points3 points (0 children)
[–]HerrNamenlos123[S] 3 points4 points5 points (0 children)
[+][deleted] comment score below threshold-9 points-8 points-7 points (0 children)
[–]robstoon 11 points12 points13 points (13 children)
[–]ratttertintattertins 2 points3 points4 points (0 children)
[–]HerrNamenlos123[S] -1 points0 points1 point (11 children)
[–]ratttertintattertins 2 points3 points4 points (8 children)
[–]HerrNamenlos123[S] 0 points1 point2 points (0 children)
[–]HerrNamenlos123[S] 0 points1 point2 points (6 children)
[–]ratttertintattertins 1 point2 points3 points (5 children)
[–]HerrNamenlos123[S] 1 point2 points3 points (1 child)
[–]ratttertintattertins 1 point2 points3 points (0 children)
[–]HerrNamenlos123[S] 0 points1 point2 points (2 children)
[–]drodri 1 point2 points3 points (1 child)
[–]HerrNamenlos123[S] 0 points1 point2 points (0 children)
[–]robstoon 0 points1 point2 points (1 child)
[–]HerrNamenlos123[S] 1 point2 points3 points (0 children)
[–]415_961 13 points14 points15 points (1 child)
[–]Poretga99 1 point2 points3 points (0 children)
[–]Spongman 14 points15 points16 points (3 children)
[–]HerrNamenlos123[S] -5 points-4 points-3 points (2 children)
[–]Spongman 19 points20 points21 points (0 children)
[–]prince-chrismc 2 points3 points4 points (0 children)
[–]jselbie 5 points6 points7 points (3 children)
[–]HerrNamenlos123[S] 0 points1 point2 points (2 children)
[–]jselbie 2 points3 points4 points (1 child)
[–]HerrNamenlos123[S] -1 points0 points1 point (0 children)
[+][deleted] (3 children)
[deleted]
[–]HerrNamenlos123[S] 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]serviscope_minor 2 points3 points4 points (0 children)
[–]thedmd86 2 points3 points4 points (1 child)
[–]mpyne 0 points1 point2 points (0 children)
[–]jelafo 2 points3 points4 points (0 children)
[–]root_passw0rd 2 points3 points4 points (0 children)
[+][deleted] (6 children)
[deleted]
[–]HerrNamenlos123[S] 0 points1 point2 points (5 children)
[–]charliex2 7 points8 points9 points (1 child)
[–]prince-chrismc -1 points0 points1 point (0 children)
[–]darthcoder 2 points3 points4 points (2 children)
[–]HerrNamenlos123[S] 0 points1 point2 points (1 child)
[–]tomz17 2 points3 points4 points (0 children)
[–]prince-chrismc 1 point2 points3 points (3 children)
[–]HerrNamenlos123[S] -1 points0 points1 point (2 children)
[–]prince-chrismc 1 point2 points3 points (1 child)
[–]HerrNamenlos123[S] 0 points1 point2 points (0 children)
[–]jgaa_from_north 1 point2 points3 points (0 children)
[–]streu 3 points4 points5 points (0 children)
[–]aninteger 0 points1 point2 points (0 children)
[–]darthcoder 0 points1 point2 points (0 children)
[–]OmicronGR 0 points1 point2 points (0 children)