forked from boostorg/mqtt5
Add re authentication tests
Summary: related to T12015 Reviewers: ivica Reviewed By: ivica Subscribers: miljen, iljazovic Differential Revision: https://repo.mireo.local/D27436
This commit is contained in:
1 parent
1485d5ec8b
commit
d7d0b4c239
6 files changed
+337
-75
No files matched your search
@@ -45,6 +45,9 @@ public:
|
||||
}
|
||||
|
||||
void perform() {
|
||||
if (_auth.method().empty())
|
||||
return;
|
||||
|
||||
auto auth_step = auth_step_e::client_initial;
|
||||
return _auth.async_auth(
|
||||
auth_step, "",
|
||||
@@ -55,7 +58,7 @@ public:
|
||||
void perform(decoders::auth_message auth_message) {
|
||||
if (_auth.method().empty())
|
||||
return on_auth_fail(
|
||||
"Unexpected AUTH received.",
|
||||
"Unexpected AUTH received",
|
||||
disconnect_rc_e::protocol_error
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user