public KeePassRPCClientConnection(IWebSocketConnection connection, bool isAuthorised, KeePassRPCExt kprpc) { WebSocketConnection = connection; Authorised = isAuthorised; //TODO2: Can we lazy load these since some sessions will require only one of these authentication mechanisms? _srp = new SRP(); Kcp = new KeyChallengeResponse(ProtocolVersion); // Load from config, default to medium security if user has not yet requested anything different securityLevel = (int)kprpc._host.CustomConfig.GetLong("KeePassRPC.SecurityLevel", 2); securityLevelClientMinimum = (int)kprpc._host.CustomConfig.GetLong("KeePassRPC.SecurityLevelClientMinimum", 2); KPRPC = kprpc; }