/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "acl/RegexData.h"
#include "acl/UserData.h"
#include "client_side.h"
+#include "http/Stream.h"
ACLExtUser::~ACLExtUser()
{
ACLExtUser::ACLExtUser(ACLData<char const *> *newData, char const *newType) : data (newData), type_ (newType) {}
-ACLExtUser::ACLExtUser (ACLExtUser const &old) : data (old.data->clone()), type_ (old.type_)
-{}
-
-ACLExtUser &
-ACLExtUser::operator= (ACLExtUser const &rhs)
-{
- data = rhs.data->clone();
- type_ = rhs.type_;
- return *this;
-}
-
char const *
ACLExtUser::typeString() const
{
return type_;
}
+const Acl::Options &
+ACLExtUser::lineOptions()
+{
+ return data->lineOptions();
+}
+
void
ACLExtUser::parse()
{
- debugs(28, 3, "aclParseUserList: current is null. Creating");
- data = new ACLUserData;
data->parse();
}
return data->empty();
}
-ACL *
-ACLExtUser::clone() const
-{
- return new ACLExtUser(*this);
-}
-
#endif /* USE_AUTH */