-
Notifications
You must be signed in to change notification settings - Fork 1.2k
transports/tls: Add libp2p-tls as per spec
#2945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 39 commits
06a77c2
5364b43
71b2fe8
80c0d1c
03a2aed
c5b1558
2316505
334544d
4d6db82
e4547a5
3267ccd
9a9ac2b
b810bcc
7c6e6cf
a8d965f
6d68ffa
21b4319
f0cac36
39fdf41
3b76e39
3ddf442
d0bb3fa
01ecdbc
67eda94
eedbefc
d9f1036
d74fe57
eaa27f4
f95e9d9
7acf98b
4f15b3b
e1f34ae
79a464a
59ebdb2
a1546be
f6ba989
4a5c4da
d078a5e
d9c999a
d362aef
10b4c82
e4e7bfd
6bb6ce7
2ac833e
6e03126
1edc6f3
fbb0d3a
a3af017
f11c54e
bf1b30a
59c43ce
3fe6386
ed98810
f5bf544
eae9b5f
27b58f7
b01bff4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # 0.1.0 [unreleased] | ||
|
|
||
| Initial release. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||
| [package] | ||||||
| name = "libp2p-tls" | ||||||
| version = "0.1.0" | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
To the best of my knowledge, the code below has not run in any production systems. To communicate expectations, I suggest releasing this as an alpha first. See also same suggestion on QUIC pull request #2289 (comment)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On it! Most users depend on Do you think we should perhaps not re-export the TLS implementation yet so users have to depend on it manually?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That is true. Though I would explicitly call it out in the changelog.
I don't have an opinion here. I think we should be consistent with
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you think about annotating the re-export with the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That is specific to the Rust compiler from what I know, I don't think you can use that actually?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah yes you are right! Don't have a strong on opinion on whether to re-export tls and quic or not. I did not consider that when re-exporting we "hide" the alpha-flag, so maybe not re-exporting is the best solution after all.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think not exporting it would be the better solution but I don't want to block this PR on it. We can always change that until the next release. |
||||||
| edition = "2021" | ||||||
| license = "MIT" | ||||||
| exclude = ["src/test_assets"] | ||||||
|
|
||||||
| [dependencies] | ||||||
| futures = { version = "0.3.24", default-features = false } | ||||||
| futures-rustls = "0.22.2" | ||||||
| libp2p-core = { version = "0.37.0", path = "../../core" } | ||||||
| rcgen = "0.9.2" | ||||||
| ring = "0.16.20" | ||||||
| rustls = { version = "0.20.2", default-features = false, features = ["dangerous_configuration"] } # Exposed dependency! Bump major version on any change. | ||||||
|
thomaseizinger marked this conversation as resolved.
Outdated
|
||||||
| thiserror = "1.0.36" | ||||||
| webpki = "0.22.0" | ||||||
| x509-parser = "0.14.0" | ||||||
| yasna = "0.5.0" | ||||||
|
|
||||||
| [dev-dependencies] | ||||||
| hex = "0.4.3" | ||||||
| hex-literal = "0.3.4" | ||||||
| libp2p = { path = "../..", features = ["yamux"], default-features = false } | ||||||
| tokio = { version = "1.21.1", features = ["full"] } | ||||||
Uh oh!
There was an error while loading. Please reload this page.