re: replaced raw pointers in favor of unique_ptr in [HandshakeManager] and related classes.
This commit is contained in:
parent
f238e682b3
commit
7d8163539c
6 changed files with 20 additions and 26 deletions
|
|
@ -4141,9 +4141,9 @@ ClientConnection::DeferredEntityLinkPacket::DeferredEntityLinkPacket(shared_ptr<
|
|||
void ClientConnection::beginAuth()
|
||||
{
|
||||
handshakeManager = new HandshakeManager(false);
|
||||
handshakeManager->registerModule(new SessionAuthModule());
|
||||
handshakeManager->registerModule(new KeypairOfflineAuthModule());
|
||||
handshakeManager->registerModule(new OfflineAuthModule());
|
||||
handshakeManager->registerModule(std::make_unique<SessionAuthModule>());
|
||||
handshakeManager->registerModule(std::make_unique<KeypairOfflineAuthModule>());
|
||||
handshakeManager->registerModule(std::make_unique<OfflineAuthModule>());
|
||||
|
||||
const auto &profiles = AuthProfileManager::getProfiles();
|
||||
int idx = AuthProfileManager::getSelectedIndex();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue