Skip to content

Conversation

@BRA1L0R
Copy link

@BRA1L0R BRA1L0R commented Nov 13, 2025

The Certificate implementation under cert_nossl.rs (the one used when the cert_nossl feature is enabled) is missing a From implementation between the Certificate wrapper and the inner x509_cert::Certificate

I also bumped the minor version as this does not break current APIs.

On a side note, the currently implemented From<&Certificate> (and the other way around) in the openssl implementation are wrong. Cloning should not be done implicitly inside From implementation.

I addede a cert method returning a reference to the inner type to support cloning explicitly the x509_cert certificate type instead of cloning it implicitly via .into()

Copy link
Member

Choose a reason for hiding this comment

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

Hey I do appreciate the version bump, but we prefer having bumps when we are ready to cut release in a separate PR. It makes it easier for us to keep track everything that has been added into the repo between releases.

@DGonzalezVillal
Copy link
Member

The code itself looks good although. Please make sure you add your sign to the commits and also please raise an issue regarding the &Certificate From implementation.

@BRA1L0R
Copy link
Author

BRA1L0R commented Dec 19, 2025 via email

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.

3 participants