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 host name verification #2475

Merged
merged 1 commit into from
Feb 1, 2019
Merged

Conversation

aahmed-se
Copy link
Contributor

@aahmed-se aahmed-se commented Aug 29, 2018

This adds ssl host name verification as an optional client configuration for the C/C++ client library
This brings it to parity with the java client

@aahmed-se aahmed-se force-pushed the hostNameValidation1 branch 11 times, most recently from 8e1a36c to fa723a7 Compare August 31, 2018 19:11
@aahmed-se aahmed-se changed the title [WIP] Add host name verification Add host name verification Aug 31, 2018
// certificate.
sock.set_verify_mode(ssl::verify_peer);
sock.set_verify_callback(ssl::rfc2818_verification(physicalAddress));
sock.handshake(ssl_socket::client);
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to add unit-test? we can reuse certificates used in java-test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will add unit test first I need to fix the build

@aahmed-se aahmed-se changed the title Add host name verification [WIP] Add host name verification Sep 4, 2018
@aahmed-se aahmed-se changed the title [WIP] Add host name verification Add host name verification Sep 28, 2018
@aahmed-se
Copy link
Contributor Author

Added Tests

@sijie
Copy link
Member

sijie commented Nov 21, 2018

@merlimat @ivankelly please review it.

@aahmed-se aahmed-se closed this Dec 15, 2018
@aahmed-se aahmed-se deleted the hostNameValidation1 branch December 15, 2018 00:42
@aahmed-se aahmed-se restored the hostNameValidation1 branch December 15, 2018 00:46
@wolfstudy
Copy link
Member

@aahmed-se @merlimat hello, i am catching up the function for go client, want to know the progress of this pull request.

@aahmed-se
Copy link
Contributor Author

@wolfstudy I need to rebase this on master but I consider it done for now.

@aahmed-se aahmed-se force-pushed the hostNameValidation1 branch 6 times, most recently from ddbf5bf to 53ce603 Compare February 1, 2019 09:07
@ivankelly ivankelly added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages component/c++ labels Feb 1, 2019
@ivankelly ivankelly added this to the 2.3.0 milestone Feb 1, 2019
@ivankelly ivankelly merged commit 0781cf4 into apache:master Feb 1, 2019
@aahmed-se aahmed-se deleted the hostNameValidation1 branch March 4, 2019 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants