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

Integrate libmesode differences #186

Merged
merged 5 commits into from
Oct 28, 2021

Conversation

sjaeckel
Copy link
Member

This PR adds the major functional difference of libmesode (the manual verification of a certificate) to libstrophe.

I've re-worked the API's and implementation a bit, but functionality-wise it should be comparable.

The major difference of the implementation is the libmesode behavior where processing a certificate will lead to accepting the next presented certificate. This has to be implemented in the application now.

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Copy link
Member

@pasis pasis left a comment

Choose a reason for hiding this comment

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

Please handle getline() issue and I will merge it.

@pasis
Copy link
Member

pasis commented Oct 27, 2021

I had a quick look without deep dive into openssl/gnutls code and it looks good. Thanks for the PR.

@jubalh
Copy link
Member

jubalh commented Oct 28, 2021

Please handle getline() issue and I will merge it.

Do you think you could create a new release afterwards?

@pasis
Copy link
Member

pasis commented Oct 28, 2021

Please handle getline() issue and I will merge it.

Do you think you could create a new release afterwards?

Sure, I don't have other pending changes.

@sjaeckel sjaeckel force-pushed the integrate-libmesode-differences branch from ed6f8ac to e639acd Compare October 28, 2021 09:19
Based on the differences to libmesode this functionality has been added.

It allows a library-user to set a callback for cases where the TLS stack
can't verify a received certificate and let the end-user decide what to
do.

examples/basic implements an example handler of said functionality.

Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
@sjaeckel sjaeckel force-pushed the integrate-libmesode-differences branch from e639acd to 220f276 Compare October 28, 2021 12:42
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
@sjaeckel sjaeckel force-pushed the integrate-libmesode-differences branch from c156063 to bf1348e Compare October 28, 2021 15:25
@pasis pasis merged commit bf1348e into strophe:master Oct 28, 2021
@pasis
Copy link
Member

pasis commented Oct 28, 2021

Merged, thanks

@pasis
Copy link
Member

pasis commented Oct 28, 2021

0.11.0 is released.

@sjaeckel sjaeckel deleted the integrate-libmesode-differences branch October 28, 2021 18:50
@sjaeckel
Copy link
Member Author

thx for the review and fast handling!

@sjaeckel sjaeckel added this to the 0.11.0 milestone Jul 11, 2022
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