{"id":15019138,"url":"https://github.com/reyk/rust-libtls","last_synced_at":"2026-03-07T12:37:05.768Z","repository":{"id":56004174,"uuid":"218851286","full_name":"reyk/rust-libtls","owner":"reyk","description":"Rust bindings for LibreSSL's libtls library.","archived":false,"fork":false,"pushed_at":"2022-07-31T06:39:23.000Z","size":2306,"stargazers_count":15,"open_issues_count":5,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-25T03:13:52.078Z","etag":null,"topics":["libressl","libtls","openbsd","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reyk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-31T20:04:18.000Z","updated_at":"2024-01-06T16:51:09.000Z","dependencies_parsed_at":"2022-08-15T11:10:46.252Z","dependency_job_id":null,"html_url":"https://github.com/reyk/rust-libtls","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/reyk/rust-libtls","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyk%2Frust-libtls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyk%2Frust-libtls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyk%2Frust-libtls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyk%2Frust-libtls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reyk","download_url":"https://codeload.github.com/reyk/rust-libtls/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reyk%2Frust-libtls/sbom","scorecard":{"id":773178,"data":{"date":"2025-08-11","repo":{"name":"github.com/reyk/rust-libtls","commit":"4a374ea2f3407b090e2629f0a39bcfcfe9f96343"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/audit.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/audit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/audit.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/audit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/reyk/rust-libtls/main.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   6 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/audit.yml:1","Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T02:46:25.310Z","repository_id":56004174,"created_at":"2025-08-23T02:46:25.311Z","updated_at":"2025-08-23T02:46:25.311Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30213265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T12:15:00.571Z","status":"ssl_error","status_checked_at":"2026-03-07T12:15:00.217Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["libressl","libtls","openbsd","rust"],"created_at":"2024-09-24T19:53:02.980Z","updated_at":"2026-03-07T12:37:05.726Z","avatar_url":"https://github.com/reyk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust bindings for [LibreSSL]'s [libtls].\n\n[![Crates.IO](https://img.shields.io/crates/v/libtls.svg)](https://crates.io/crates/libtls)\n[![docs.rs](https://docs.rs/libtls/badge.svg)](https://docs.rs/libtls)\n[![Actions](https://github.com/reyk/rust-libtls/workflows/actions/badge.svg)](https://github.com/reyk/rust-libtls/actions)\n[![Build Status](https://travis-ci.org/reyk/rust-libtls.svg?branch=master)](https://travis-ci.org/reyk/rust-libtls)\n[![License](https://img.shields.io/badge/license-ISC-blue.svg)](https://raw.githubusercontent.com/reyk/rust-libtls/master/LICENSE)\n\n[Documentation], [Changelog]\n\nThe [LibreSSL] project provides a free TLS and crypto stack that was\nforked from [OpenSSL] in 2014.  The goals are to provide a modernized\ncodebase, improved security, and to apply best practice development\nprocesses.\n\n[LibreSSL] provides C APIs that are compatible to [OpenSSL]'s [libssl]\nand [libcrypto] libraries.  It also provides [libtls], a new TLS\nlibrary that is designed to make it easier to write foolproof\napplications.\n\nThis workspace of Rust crates provides language bindings for [libtls]\nonly, as the other [LibreSSL] APIs can be used with the existing\n[rust-openssl] crate.  [LibreSSL] versions 2.9.0 through 3.1.0 (or\nlater) are supported.  TLSv1.3 requires LibreSSL 3.1.0 or later.\n\nThe following crates are included:\n- [libtls-sys]: FFI bindings.\n- [libtls]: Rust bindings.\n- [tokio-libtls]: [Tokio] bindings.\n\n## Minimum Rust version\n\nAsync I/O with [tokio-libtls] requires Rust 1.39 or later for\n[async-await].  This crate does not provide any backwards\ncompatibility but you can use version `1.0.0` on older Rust versions.\n\n## Examples\n\nSee the [examples] directory for various examples to configure,\nestablish, and connect synchronous and asynchronous TLS connections.\nThe following selected example creates a non-blocking and asynchronous\nTLS connection using [Tokio] and the [tokio-libtls] crate:\n\n```rust\nuse std::io;\nuse tokio::io::{AsyncReadExt, AsyncWriteExt};\nuse tokio_libtls::prelude::*;\n\nasync fn async_https_connect(servername: \u0026str) -\u003e io::Result\u003c()\u003e {\n    let addr = \u0026(servername.to_owned() + \":443\");\n\n    let request = format!(\n        \"GET / HTTP/1.1\\r\\n\\\n         Host: {}\\r\\n\\\n         Connection: close\\r\\n\\r\\n\",\n        servername\n    );\n\n    let config = Builder::new().build()?;\n    let mut tls = connect(addr, \u0026config, None).await?;\n    tls.write_all(request.as_bytes()).await?;\n\n    let mut buf = vec![0u8; 1024];\n    tls.read_exact(\u0026mut buf).await?;\n\n    let ok = b\"HTTP/1.1 200 OK\\r\\n\";\n    assert_eq!(\u0026buf[..ok.len()], ok);\n\n    Ok(())\n}\n\n#[tokio::main]\nasync fn main() {\n    async_https_connect(\"www.example.com\").await.unwrap();\n}\n```\n\n\n## Copyright and license\n\nLicensed under an OpenBSD-ISC-style license, see [LICENSE] for details.\n\n[Changelog]: CHANGELOG.md\n[Documentation]: https://docs.rs/libtls\n[LICENSE]: LICENSE\n[LibreSSL]: https://www.libressl.org\n[OpenSSL]: https://wiki.openssl.org/index.php/Code_Quality\n[Tokio]: https://tokio.rs/\n[async-await]: https://blog.rust-lang.org/2019/11/07/Async-await-stable.html\n[examples]: https://github.com/reyk/rust-libtls/tree/master/examples\n[libcrypto]: https://man.openbsd.org/crypto.3\n[libssl]: https://man.openbsd.org/ssl.3\n[libtls-sys]: https://crates.io/crates/libtls\n[libtls]: https://crates.io/crates/libtls\n[libtls]: https://man.openbsd.org/tls_init.3\n[rust-openssl]: https://docs.rs/openssl/\n[tokio-libtls]: https://crates.io/crates/tokio-libtls\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freyk%2Frust-libtls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freyk%2Frust-libtls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freyk%2Frust-libtls/lists"}