- 04 Feb, 2019 2 commits
-
-
knowledge4igor authored
-
Dennis Jenkins authored
Header files and libraries cannot be found if not installed to default directories
-
- 03 Feb, 2019 11 commits
-
-
Dennis Jenkins authored
Fix issues in test_memcheck
-
Adrian Cruceru authored
-
Adrian Cruceru authored
-
Dennis Jenkins authored
Fix memory defects in net
-
knowledge4igor authored
-
knowledge4igor authored
-
knowledge4igor authored
-
bdvd authored
fix: creating and exposing the variables Pistache_INCLUDE_DIRS Pistache_LIBRARIES to set include and link directories
-
bdvd authored
clean: introducing the variables Pistache_OUTPUT_NAME, Pistache_CMAKE_INSTALL_PATH, Pistache_CONFIG_FILE to reduce possible typo errors
-
Dennis Jenkins authored
Fix memory defect in http header
-
Dennis Jenkins authored
Add overload for out operator in Cookie
-
- 02 Feb, 2019 3 commits
-
-
knowledge4igor authored
-
knowledge4igor authored
-
knowledge4igor authored
-
- 01 Feb, 2019 2 commits
-
-
-
Adrian Cruceru authored
-
- 31 Jan, 2019 4 commits
-
-
Dennis Jenkins authored
Arthurafarias fix memory leak timer
-
Dennis Jenkins authored
Merge pull request #423 from arthurafarias/arthurafarias-add-cmake-custom-target-memcheck-test-valgrind Added test_memcheck (memory leak check) custom target to build targets
-
Dennis Jenkins authored
Fixed compile time warnings
-
Adrian Cruceru authored
-
- 30 Jan, 2019 7 commits
-
-
Arthur de Araújo Farias authored
-
Arthur de Araújo Farias authored
Fixed memory leak in peers
-
Arthur de Araújo Farias authored
-
Arthur de Araújo Farias authored
Fixed compile time warnings due to invalid test case and not initiali…
-
Arthur de Araújo Farias authored
Merge pull request #1 from arthurafarias/arthurafarias-add-cmake-custom-target-memcheck-test-valgrind Added test_memcheck (memory leak check) custom target to build targets
-
Arthur de Araújo Farias authored
-
Arthur de Araújo Farias authored
-
- 28 Jan, 2019 2 commits
-
-
Dennis Jenkins authored
[ENDPOINT] NEW: Now can use SSL encryption on HTTP endpoint
-
Louis Solofrizzo authored
Introduction ------------ This patch introduces full SSL support for the pistache endpoint. The purpose of this patch is to be able to use SSL encryption without a SSL proxy, which is pretty useful for embedded development. It has been tested locally with simple SSL support and certificate connection, my example file is below. Features -------- First of all, in order to enable SSL support in the library, one has to compile with PISTACHE_USE_SSL option ON. One can then configure the endpoint to accept / use SSL connections only: Http::Endpoint server(addr); server.useSSL("./server.crt", "./cert/server.key"); With that done, all the connections to the server shall now be in HTTPS. One can also enable certificate authentication against the server: server.useSSLAuth("./rootCA.crt"); The server will now only accept client connection with a certificate signed with the Certificate Authority passed in the example above. How to use it ------------- Test file: #include <pistache/endpoint.h> using namespace Pistache; struct HelloHandler : public Http::Handler { HTTP_PROTOTYPE(HelloHandler) void onRequest(const Http::Request& request, Http::ResponseWriter writer) { writer.send(Http::Code::Ok, "Hello, World!"); } }; int main(void) { Pistache::Address addr; auto opts = Http::Endpoint::options().threads(1); addr = Pistache::Address(Pistache::Ipv4::any(), Pistache::Port(9080)); Http::Endpoint server(addr); server.init(opts); server.setHandler(std::make_shared<HelloHandler>()); server.useSSL("./cert/server.crt", "./cert/server.key"); server.serve(); return 0; } Compiled with: g++ main.cpp -L../pistache/build/src/ -lpistache -I../pistache/include/ -o server -lpthread -lssl -lcrypto In order to generate a Certificate Authority and server / client certificate and key, please refer to this gist[1]. Tests ----- I've added unit tests to this commit, they should automatically compile / launch with PISTACHE_SSL=ON. Pull Request : https://github.com/oktal/pistache/pull/226 Signed-off-by : Louis Solofrizzo <louis@ne02ptzero.me> (Using Scaleway signing Key) Reviewed-by : mauriciovasquezbernal <mauricio.vasquez@polito.it> Reviewed-by : snilga Commited-by : dennisjenkins75 <dennis.jenkins.75@gmail.com> Origin : denkeep/pistache [1] https://gist.github.com/fntlnz/cf14feb5a46b2eda428e000157447309 _________________________________________ / A man may be so much of everything that \ | he is nothing of anything. -- Samuel | \ Johnson / ----------------------------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
-
- 26 Jan, 2019 5 commits
-
-
Dennis Jenkins authored
Implementation of Date::write
-
Arthur de Araújo Farias authored
-
Dennis Jenkins authored
Code improvements: lambdas and tiny changes
-
knowledge4igor authored
-
Arthur de Araújo Farias authored
-
- 25 Jan, 2019 3 commits
-
-
Arthur de Araújo Farias authored
-
Dennis Jenkins authored
Move global type alias size_type inside string_view
-
Wang Boyu authored
-
- 23 Jan, 2019 1 commit
-
-
Dennis Jenkins authored
Work around regex_replace issue in GCC<4.9
-