-
For my purpose, I modified the ep_slcoro_mqtts_client example to validate the server certificate and send a client certificate chain. I made my modifications in the app's constructor and changed
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
However, it is not equal to the setting is refelected after passing. Let me clarify what you mean https://github.com/redboltz/async_mqtt/blob/main/example/ep_slcoro_mqtts_client.cpp#L20-L33 template <typename Executor>
struct app {
app(Executor exe,
std::string_view host,
std::string_view port
):host_{std::move(host)},
port_{std::move(port)},
amep_{
am::protocol_version::v3_1_1, exe, ctx_ // passed ctx_
}
{
ctx_.set_verify_mode(as::ssl::verify_none); // set ctx_ **after** passed, but it is not reflected to the behavior
impl_();
} I added comments. Is it correct ? By the wey, please use issue https://github.com/redboltz/async_mqtt/issues instead of discusstions next time. |
Beta Was this translation helpful? Give feedback.
I guess I understand what you mean correctly. If it does, the example is misleading, so I wrote the PR #361
See
ep_slcoro_mqtts_client.cpp
part.