Q: use fuctionally overlaping ABIs and use cjson
Looks like librist uses mbedtls
which provides cryptographic and SSL/TLS inteface and at the same time it uses libmicrohttpd
which uses own cryptography backedn library. Usually libmicrohttpd is compiled with curl
support which as well can use SSL/TLS but it cannot be compiled with its own SSL/TLS support (usually openssl).
Q: Is is not would be better to use only what provides libmicrohttpd and/or if use SSL/TLS over curl or is not good is is possible to provide possibility to build librist
which will be using openssl
?
And second qursion about use JSON intefaca. Just checked my +7k spec files librarty :
[tkloczko@pers-jacek SPECS]$ grep BuildRequires:.*json * -h | grep -v python| cut -f 1-2 | sort | uniq -c | sort -nr | head -10
59 BuildRequires: pkgconfig(json-glib-1.0)
23 BuildRequires: pkgconfig(json-c)
3 BuildRequires: rubygem-json
3 BuildRequires: json-c-devel
2 BuildRequires: rapidjson-devel
2 BuildRequires: pkgconfig(jsoncpp)
1 BuildRequires: pkgconfig(nlohmann_json)
1 BuildRequires: pkgconfig(jsonrpc-glib-1.0)
1 BuildRequires: jsoncpp-devel
1 #BuildRequires: pkgconfig(json-parser)
IMO it would be good to provide possibility to use json-c
(https://github.com/json-c/json-c/) or even switch completly to use that library because this library is most frequently used.