server decode credentials

This commit is contained in:
Michael Davidsaver
2019-12-15 16:43:22 -08:00
parent 9af9f028eb
commit 7de1f7d32f
2 changed files with 11 additions and 1 deletions
+9 -1
View File
@@ -152,11 +152,19 @@ void ServerConn::handle_CONNECTION_VALIDATION()
from_wire(M, qos);
from_wire(M, selected);
Value auth;
from_wire_type_value(M, rxRegistry, auth);
// TODO store credentials
if(!M.good()) {
log_printf(connio, PLVL_ERR, "Client %s Truncated/Invalid ConnValid from client", peerName.c_str());
log_printf(connio, PLVL_ERR, "Client %s Truncated/Invalid ConnValid from client\n", peerName.c_str());
bev.reset();
return;
} else {
log_printf(connsetup, PLVL_DEBUG, "Client %s authenticates using %s and %s\n",
peerName.c_str(), selected.c_str(),
std::string(SB()<<auth).c_str());
}
}