{"id":19492794,"url":"https://github.com/oatpp/oatpp-libressl","last_synced_at":"2025-04-25T20:30:39.364Z","repository":{"id":54198794,"uuid":"138349744","full_name":"oatpp/oatpp-libressl","owner":"oatpp","description":"oatpp secure ConnectionProvider based on libressl","archived":false,"fork":false,"pushed_at":"2024-05-25T06:01:22.000Z","size":226,"stargazers_count":4,"open_issues_count":3,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T22:52:07.692Z","etag":null,"topics":["c-plus-plus","cpp","https-server","libressl","oatpp"],"latest_commit_sha":null,"homepage":"https://oatpp.io/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oatpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-22T21:29:26.000Z","updated_at":"2023-08-05T19:45:02.000Z","dependencies_parsed_at":"2024-11-10T15:15:22.555Z","dependency_job_id":null,"html_url":"https://github.com/oatpp/oatpp-libressl","commit_stats":{"total_commits":73,"total_committers":2,"mean_commits":36.5,"dds":"0.013698630136986356","last_synced_commit":"f7b338ab520f2bd33c15489557c46b7d4012c0e7"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Foatpp-libressl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Foatpp-libressl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Foatpp-libressl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oatpp%2Foatpp-libressl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oatpp","download_url":"https://codeload.github.com/oatpp/oatpp-libressl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224015660,"owners_count":17241535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","cpp","https-server","libressl","oatpp"],"created_at":"2024-11-10T21:23:02.685Z","updated_at":"2024-11-10T21:23:04.013Z","avatar_url":"https://github.com/oatpp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oatpp-libressl [![oatpp build status](https://dev.azure.com/lganzzzo/lganzzzo/_apis/build/status/oatpp.oatpp-libressl)](https://dev.azure.com/lganzzzo/lganzzzo/_build?definitionId=3)\nThis submodule provides secure server and client connection providers for oatpp applications. Based on LibreSSL.\n\nMore about oat++:\n- Website: [https://oatpp.io](https://oatpp.io)\n\n## Requires\n\nLibreSSL installed.\n\n## Example\n\nSee: [Full example project TLS-Libressl](https://github.com/oatpp/example-libressl)\n\n### Create server connection provider\n\n```c++\n\n#include \"oatpp-libressl/server/ConnectionProvider.hpp\"\n#include \"oatpp-libressl/Config.hpp\"\n\n...\n\nconst char* pemFile = \"path/to/file.pem\";\nconst char* crtFile = \"path/to/file.crt\";\n\nauto config = oatpp::libressl::Config::createDefaultServerConfig(pemFile, crtFile);\nauto connectionProvider = oatpp::libressl::server::ConnectionProvider::createShared(config, 8443);\n\n```\n\n### Create client connection provider\n\n```c++\n\n#include \"oatpp-libressl/client/ConnectionProvider.hpp\"\n#include \"oatpp-libressl/Config.hpp\"\n\n...\n\nauto config = oatpp::libressl::Config::createShared();\nauto connectionProvider = oatpp::libressl::client::ConnectionProvider::createShared(config, \"httpbin.org\", 443);\n\n```\n\n## Don't forget!\n\nSet libressl lockingCallback and SIGPIPE handler on program start!\n\n```c++\n\n#include \"oatpp-libressl/Callbacks.hpp\"\n\n...\n\n/* set lockingCallback for libressl */\noatpp::libressl::Callbacks::setDefaultCallbacks();\n\n```\n\n```c++\n#include \u003ccsignal\u003e\n\n...\n\n/* ignore SIGPIPE */\nstd::signal(SIGPIPE, SIG_IGN);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foatpp%2Foatpp-libressl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foatpp%2Foatpp-libressl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foatpp%2Foatpp-libressl/lists"}