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 AF_ALG constants and structures #1261

Merged
merged 17 commits into from
Feb 20, 2019
Merged

Add AF_ALG constants and structures #1261

merged 17 commits into from
Feb 20, 2019

Conversation

glebpom
Copy link
Contributor

@glebpom glebpom commented Feb 18, 2019

No description provided.

@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @gnzlbg (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

src/unix/notbsd/mod.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@gnzlbg gnzlbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

@gnzlbg
Copy link
Contributor

gnzlbg commented Feb 18, 2019

@bors: r+

@bors
Copy link
Contributor

bors commented Feb 18, 2019

📌 Commit 32226f5 has been approved by gnzlbg

@gnzlbg
Copy link
Contributor

gnzlbg commented Feb 18, 2019

@bors: r-

@glebpom
Copy link
Contributor Author

glebpom commented Feb 19, 2019

Tests which explicitly download the kernel version 3.12.6 are failing. Minimum kernel version 3.19 is required for ALG_SET_AEAD_ASSOCLEN and ALG_SET_AEAD_AUTHSIZE. Any ideas on how to fix it? I would suggest migrating to musl-cross-make. That would be far more maintainable but will take more time to build. Use travis caching?

@gnzlbg
Copy link
Contributor

gnzlbg commented Feb 19, 2019

Any ideas on how to fix it?

The best would be to skip these in the build.rs of libc-test.

@glebpom
Copy link
Contributor Author

glebpom commented Feb 19, 2019

The build is passing now. Would you review the code again?

Copy link
Contributor

@gnzlbg gnzlbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good! I still have some questions, but we are almost ready :)

@glebpom
Copy link
Contributor Author

glebpom commented Feb 19, 2019

Should be good now

.field("salg_type", &self.salg_type)
.field("salg_feat", &self.salg_feat)
.field("salg_mask", &self.salg_mask)
// .field("salg_name", &self.salg_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and anothr field below are also commented, would you mind fixing those too?

@@ -748,7 +748,7 @@ cfg_if! {
impl ::fmt::Debug for af_alg_iv {
fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
f.debug_struct("af_alg_iv")
// .field("iv", self.as_slice())
.field("iv", &self.as_slice().iter().collect::<Vec<_>>())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that &self.as_slice() should be enough, no need to call iter and collect (which would allocate memory).

Copy link
Contributor

@gnzlbg gnzlbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! This looks great! Thank you a lot for working on this and updating things so quickly!

@gnzlbg
Copy link
Contributor

gnzlbg commented Feb 20, 2019

@bors: r+

@bors
Copy link
Contributor

bors commented Feb 20, 2019

📌 Commit bce3ee3 has been approved by gnzlbg

@bors
Copy link
Contributor

bors commented Feb 20, 2019

⌛ Testing commit bce3ee3 with merge c2904a7...

bors added a commit that referenced this pull request Feb 20, 2019
Add AF_ALG constants and structures
@bors
Copy link
Contributor

bors commented Feb 20, 2019

☀️ Test successful - checks-cirrus, checks-travis, status-appveyor
Approved by: gnzlbg
Pushing c2904a7 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants