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

Feat/peer certificates #115

Merged
merged 4 commits into from
Apr 1, 2020
Merged

Feat/peer certificates #115

merged 4 commits into from
Apr 1, 2020

Conversation

jkralik
Copy link
Member

@jkralik jkralik commented Apr 1, 2020

No description provided.

jdbruijn and others added 4 commits April 1, 2020 09:30
This will, for example, allow the server to get the client certificate (chain) in case of DTLS.
The certificates can be accessed as `req.PeerCertificates` where `req` is of type `req *coap.Request`.
PeerCertificates are accessed through the ClientCommander and is only implemented for DTLS, the other sessions return `nil`.
Copy link
Collaborator

@jdbruijn jdbruijn left a comment

Choose a reason for hiding this comment

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

This looks good to me. Thanks so much for creating these tests. Just looking at them I couldn't have come up with it, but it teaches me a lot just going through the test. Thanks for helping me learn!

For what its worth: I've verified that this indeeds tests what I had in mind (whether PeerCertificates returns a value).

@jdbruijn
Copy link
Collaborator

jdbruijn commented Apr 1, 2020

For completeness: this closes #103.

@jkralik jkralik merged commit 6259c4e into master Apr 1, 2020
@jkralik jkralik deleted the feat/peer-certificates branch April 1, 2020 08:31
@jdbruijn jdbruijn mentioned this pull request Jun 24, 2020
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.

None yet

2 participants