{"id":30691958,"url":"https://github.com/zelang-dev/opentls","last_synced_at":"2025-09-02T04:18:09.648Z","repository":{"id":312315119,"uuid":"1047084438","full_name":"zelang-dev/openTLS","owner":"zelang-dev","description":"libtls of LibreSSL for OpenSSL","archived":false,"fork":false,"pushed_at":"2025-08-29T18:43:44.000Z","size":538,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-29T20:49:23.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zelang-dev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-29T18:01:29.000Z","updated_at":"2025-08-29T18:43:47.000Z","dependencies_parsed_at":"2025-08-29T20:49:25.004Z","dependency_job_id":null,"html_url":"https://github.com/zelang-dev/openTLS","commit_stats":null,"previous_names":["zelang-dev/opentls"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zelang-dev/openTLS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelang-dev%2FopenTLS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelang-dev%2FopenTLS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelang-dev%2FopenTLS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelang-dev%2FopenTLS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zelang-dev","download_url":"https://codeload.github.com/zelang-dev/openTLS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zelang-dev%2FopenTLS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273229280,"owners_count":25067996,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-09-02T04:18:04.467Z","updated_at":"2025-09-02T04:18:09.643Z","avatar_url":"https://github.com/zelang-dev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# **openTLS** - libtls for OpenSSL\n\n## DESCRIPTION\n\n**openTLS** is a fork of [https://causal.agency/libretls/](https://causal.agency/libretls/), which is a port of **libtls** from LibreSSL to OpenSSL. [libtls](https://man.openbsd.org/tls_init.3) is \"a new TLS library, designed to make it easier to write foolproof applications\".\n\n**libtls** provides an excellent new API, but LibreSSL can be difficult to install on systems which already use OpenSSL. **openTLS** aims to make the **libtls** API more easily and widely available.\n\n## Tutorials\n\nSee [Writing TLS secured client and server programs using the libtls API](https://github.com/bob-beck/libtls/blob/master/TUTORIAL.md) and [libtls: Rethinking the TLS/SSL API](https://www.youtube.com/watch?v=Wd_dyRbE4AA).\n\n## Releases\n\n**openTLS** is based on [LibreSSL-portable](https://www.libressl.org/releases.html) sources. **openTLS** releases track LibreSSL releases, starting with version **3.9.2**.\n\n## Compatibility\n\nThe **libtls** provided by **openTLS** is ABI-compatible with the **libtls** provided by the corresponding LibreSSL release.\n\nThe behavior of **openTLS** and LibreSSL differs in how the root certificates are loaded by default.\nLibreSSL uses a hardcoded path to a CA bundle file, while **openTLS** uses the default CA locations of OpenSSL,\nwhich may include a CA directory. To restore the behavior of LibreSSL, call `tls_config_set_ca_file(3)`\nwith the path returned by `tls_default_ca_cert_file(3)`. All other behaviors should be identical.\n\n**openTLS** targets the OpenSSL 1.1.0 series. **openTLS** is compatible with OpenSSL 3.0.0 but hasn't been ported away from deprecated APIs.\n\n## Platform Support\n\n**openTLS** should work on the same platforms as [LibreSSL-portable](https://www.libressl.org/releases.html).\n\n## License\n\n**libtls** consists of all new code developed as part of OpenBSD under [OpenBSD's preferred license](https://www.openbsd.org/policy.html) of ISC. Some *compat* sources are under the 3-clause BSD license or the MIT license.\n\n## INSTALLING\n\nThe build system uses **cmake**, that produces **static** libraries by default.\n\n**Linux**\n\n```shell\nmkdir build\ncd build\ncmake .. -D CMAKE_BUILD_TYPE=Debug/Release -D BUILD_TESTS=ON # use to build files in tests folder\ncmake --build .\n```\n\n**Windows**\n\n```shell\nmkdir build\ncd build\ncmake .. -D BUILD_EXAMPLES=ON -D BUILD_TESTS=ON # use to build files in tests folder\ncmake --build . --config Debug/Release\n```\n\n**As cmake project dependency**\n\nAdd to **CMakeLists.txt**\n\n```c\nfind_package(opentls QUIET)\nif(NOT opentls_FOUND)\n    FetchContent_Declare(opentls\n        URL https://github.com/zelang-dev/openTLS/archive/refs/tags/4.1.0.zip\n        URL_MD5 8214dec1bf013af836efb2dae8882c30\n    )\n    FetchContent_MakeAvailable(opentls)\nendif()\n\ntarget_include_directories(your_project PUBLIC $\u003cBUILD_INTERFACE:${OPENSSL_INCLUDE_DIR}\n $\u003cINSTALL_INTERFACE:${OPENSSL_INCLUDE_DIR})\ntarget_include_directories(your_project PUBLIC ${OPENTLS_INCLUDE_DIR}\n $\u003cINSTALL_INTERFACE:${OPENTLS_INCLUDE_DIR})\ntarget_link_libraries(your_project PUBLIC ${OPENTLS_LIBRARY})\ntarget_link_libraries(your_project PUBLIC ${OPENSSL_LIBRARIES})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzelang-dev%2Fopentls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzelang-dev%2Fopentls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzelang-dev%2Fopentls/lists"}