Skip to content
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

Add basic support for v2 hashes in transmission-show #3380

Merged
merged 8 commits into from
Jul 1, 2022

Conversation

Lanzaa
Copy link
Contributor

@Lanzaa Lanzaa commented Jun 29, 2022

Relates to issue #458 and BEP-0052 (bittorrent v2).

Included in this patch is support for calculating a v2 info hash from a torrent file.

I am hoping for comments as I continue to work on further v2 support. I have not done much C++ programming in a while, so suggestions for improvement are very welcome.

@ckerr
Copy link
Member

ckerr commented Jun 29, 2022

I love this; it's progress on a milestone that's important to the project and I really appreciate the added tests!

But it's going to FTBFS on any non-openssl platform in the current form, e.g. when building on macos or with polar or cyassl. @Lanzaa are you interested in doing any work on that? Even if you don't have access to the platforms, You can get build logs from the "Sanity (Transmission) - TeamCIty" links in the Checks section above

@Lanzaa
Copy link
Contributor Author

Lanzaa commented Jun 29, 2022

Ok, I've got a basic update with the other crypto libraries and added a test case which will verify the very basics of sha256 support.

Hopefully it all works, I did the change blind w/o a build environment for them. I don't really want to spend much time on this portion.

libtransmission/makemeta.h Outdated Show resolved Hide resolved
@ckerr
Copy link
Member

ckerr commented Jun 29, 2022

I am hoping for comments as I continue to work on further v2 support.

If you have any questions or need anything, feel free to open new issues / discussions and assign me or @ me. I love that you're doing this.

Lanzaa added a commit to Lanzaa/transmission that referenced this pull request Jun 29, 2022
* Fix issue with sha256 digest length
* Add sha256 for polarssl
    Note: Bumping miniumum PolarSSL version to 1.3 because of
    sha2->sha256 name change.
* Add sha256 for CommonCrypto/ccrypto
* Add sha256 for cyassl
@GaryElshaw

This comment was marked as off-topic.

@ckerr

This comment was marked as off-topic.

@ckerr
Copy link
Member

ckerr commented Jun 30, 2022

Looks like 23e2390 might've finally gotten it right, but one of the CI boxes is offline so this will probably need to wait until sometime tomorrow when we can get CI green again. 😐

@ckerr
Copy link
Member

ckerr commented Jul 1, 2022

OK, that one runner's been down for a day and a half now and the other runs were all green. I think it's OK to go ahead with this.

@ckerr ckerr merged commit 3237323 into transmission:main Jul 1, 2022
@Lanzaa Lanzaa deleted the btv2_basics branch July 1, 2022 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants