We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Following snippet from my code is enough to reproduce the issue.
mqtt::ssl_options opts; opts.set_enable_server_cert_auth(true); opts.set_ssl_version(MQTT_SSL_VERSION_TLS_1_2); // opts.set_enabled_cipher_suites() TODO: Do we want to restrict cipher list? opts.set_key_store(variant.certificate); opts.set_private_key(variant.key); opts.ca_path(variant.certificateAuthorityDir); opts.set_error_handler([](const std::string& errMsg) { //... }); optsBuilder.ssl(std::move(opts)); auto tok = client_.connect(opts); tok->wait();
This should by easy to fix.
Hack-fix - in case someone having the same issue can't wait until the member variable gets copied/moved correctly in next library release:
... optsBuilder.ssl(std::move(opts)); mqtt::ssl_options& sslOpts = const_cast<mqtt::ssl_options&>(opts.get_ssl_options()); sslOpts.ca_path(tlsSetup->certificateAuthorityDir); auto tok = client_.connect(opts); ...
The text was updated successfully, but these errors were encountered:
Yeah, that looks like a bug. Thanks for the report!
Sorry, something went wrong.
#337 copy/move of caPath_ in ssl_options
48787dc
eclipse-paho#337 copy/move of caPath_ in ssl_options
8894789
fpagliughi
No branches or pull requests
Following snippet from my code is enough to reproduce the issue.
This should by easy to fix.
Hack-fix - in case someone having the same issue can't wait until the member variable gets copied/moved correctly in next library release:
The text was updated successfully, but these errors were encountered: