Skip to content

Added a client certificate support. #361

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

Merged

Conversation

redboltz
Copy link

Added client::options to openssl_certificate_file() and openssl_private_key_file(). They correspond to Boost.Asio's use_certificate_file() and use_private_key_file().

Naming decisions:

  1. The same as other member functions naming rules. (e.g. openssl_verify_path() )
  2. Easy to find the Boost.Asio's corresponding member functions.

Note:
I have an idea to rename the existing member function openssl_certificate() to some different name. But it would be a breaking change and I believe that I shouldn't include it in this pull request.
The reasons that I'd like to rename openssl_certificate() are as follows:

  1. openssl_certificate() corresponds to Boost.Asio's load_verify_file() so the new name should be openssl_load_verify_file() or openssl_verify_file(). Latter is better in cpp-netlib's naming mannar.
  2. This pull request adds openssl_certificate_file() and I believe that it is an apropriate name. But openssl_certificate_file() and openssl_certificate() are confusing.

If you agree with my idea, I'm ready to make a pull request. For existing users, keeping openssl_certificate() as a deprecated alias of openssl_verify_file().

@deanberris
Copy link
Member

LGTM

Well done @redboltz -- this looks very good! I'm merging this in. :)

Thank you for doing this!

deanberris added a commit that referenced this pull request Jan 20, 2014
@deanberris deanberris merged commit 8c28ccc into cpp-netlib:0.11-devel Jan 20, 2014
@ghost ghost assigned deanberris Jan 20, 2014
leecoder pushed a commit to leecoder/cpp-netlib that referenced this pull request Apr 14, 2015
…icate

Added a client certificate support.
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.

2 participants