diff --git a/src/serverconn.cpp b/src/serverconn.cpp index e0e851c..851fea2 100644 --- a/src/serverconn.cpp +++ b/src/serverconn.cpp @@ -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()< #include "evhelper.h" #include "utilpvt.h" +#include "dataimpl.h" #include "udp_collector.h" namespace pvxs {namespace impl { @@ -86,6 +87,7 @@ struct ServerConn : public std::enable_shared_from_this SockAddr peerAddr; std::string peerName; evbufferevent bev; + TypeStore rxRegistry; // credentials