#include <Security.h>
Public Types | |
enum | { srAddress, srContent } |
enum | { srNull, srAccept, srDeny } |
enum | { srIndefinite = 0, srSession = 1 } |
Public Member Functions | |
CSecureRule (BOOL bCreate=TRUE) | |
virtual | ~CSecureRule () |
void | Remove () |
void | Reset () |
void | MaskFix () |
BOOL | IsExpired (DWORD nNow, BOOL bSession=FALSE) |
BOOL | Match (IN_ADDR *pAddress, LPCTSTR pszContent=NULL) |
void | SetContentWords (const CString &strContent) |
CString | GetContentWords () |
void | Serialize (CArchive &ar, int nVersion) |
CXMLElement * | ToXML () |
BOOL | FromXML (CXMLElement *pXML) |
CString | ToGnucleusString () |
BOOL | FromGnucleusString (CString &str) |
Public Attributes | |
int | m_nType |
BYTE | m_nAction |
CString | m_sComment |
GUID | m_pGUID |
DWORD | m_nExpire |
DWORD | m_nToday |
DWORD | m_nEver |
BYTE | m_nIP [4] |
BYTE | m_nMask [4] |
TCHAR * | m_pContent |
|
Definition at line 102 of file Security.h. |
|
Definition at line 103 of file Security.h. |
|
Definition at line 104 of file Security.h. |
|
Definition at line 573 of file Security.cpp. References CSecurity::m_bDenyPolicy, m_nAction, m_nEver, m_nExpire, m_nIP, m_nMask, m_nToday, m_nType, m_pContent, m_pGUID, NULL, srAccept, srAddress, srDeny, and srIndefinite. |
|
Definition at line 588 of file Security.cpp. References m_pContent. |
|
Definition at line 984 of file Security.cpp. References m_nAction, m_nExpire, m_nIP, m_nMask, m_nType, m_sComment, MaskFix(), srAddress, srDeny, and srIndefinite. Referenced by CSecurity::Import(). |
|
Definition at line 871 of file Security.cpp. References m_nAction, m_nExpire, m_nIP, m_nMask, m_nType, m_pContent, m_sComment, MaskFix(), NULL, SetContentWords(), srAccept, srAddress, srContent, srDeny, srIndefinite, srNull, and srSession. Referenced by CSecurity::FromXML(). |
|
Definition at line 713 of file Security.cpp. References m_pContent, and NULL. Referenced by CSecureRuleDlg::OnInitDialog(), Serialize(), and ToXML(). |
|
Definition at line 609 of file Security.cpp. References m_nExpire, srIndefinite, and srSession. Referenced by CSecurity::Expire(), CSecurity::IsDenied(), and CSecurity::Serialize(). |
|
Definition at line 1031 of file Security.cpp. References m_nExpire, m_nIP, m_nMask, and srSession. Referenced by FromGnucleusString(), FromXML(), and Serialize(). |
|
Definition at line 619 of file Security.cpp. References _tcsistr(), m_nExpire, m_nIP, m_nMask, m_nType, m_pContent, NULL, srAddress, srContent, and srSession. Referenced by CSecurity::Ban(), and CSecurity::IsDenied(). |
|
Definition at line 596 of file Security.cpp. References CSecurity::Remove(). |
|
Definition at line 601 of file Security.cpp. |
|
Definition at line 733 of file Security.cpp. References GetContentWords(), m_nAction, m_nEver, m_nExpire, m_nIP, m_nMask, m_nType, m_pGUID, m_sComment, MaskFix(), SetContentWords(), srAddress, and srContent. Referenced by CSecurity::Serialize(). |
|
Definition at line 665 of file Security.cpp. References m_pContent, and NULL. Referenced by FromXML(), CSecureRuleDlg::OnOK(), and Serialize(). |
|
Definition at line 950 of file Security.cpp. References m_nAction, m_nIP, m_nMask, m_nType, m_sComment, srAddress, and srDeny. |
|
Definition at line 810 of file Security.cpp. References CXMLElement::AddAttribute(), GetContentWords(), m_nAction, m_nExpire, m_nIP, m_nMask, m_nType, m_pGUID, m_sComment, NULL, srAccept, srAddress, srContent, srDeny, srNull, and srSession. |
|
Definition at line 90 of file Security.h. Referenced by CSecurity::Ban(), CSecureRule(), FromGnucleusString(), FromXML(), CSecurity::IsDenied(), CSecureRuleDlg::OnInitDialog(), CSecureRuleDlg::OnOK(), Serialize(), ToGnucleusString(), and ToXML(). |
|
Definition at line 96 of file Security.h. Referenced by CSecureRule(), CSecurity::IsDenied(), Reset(), and Serialize(). |
|
Definition at line 94 of file Security.h. Referenced by CSecurity::Ban(), CSecureRule(), CSecurity::Expire(), FromGnucleusString(), FromXML(), CSecurity::IsDenied(), IsExpired(), MaskFix(), Match(), CSecureRuleDlg::OnInitDialog(), CSecureRuleDlg::OnOK(), Serialize(), and ToXML(). |
|
Definition at line 98 of file Security.h. Referenced by CSecurity::Ban(), CSecureRule(), FromGnucleusString(), FromXML(), MaskFix(), Match(), CSecureRuleDlg::OnInitDialog(), CSecureRuleDlg::OnOK(), Serialize(), ToGnucleusString(), and ToXML(). |
|
Definition at line 99 of file Security.h. Referenced by CSecureRule(), FromGnucleusString(), FromXML(), MaskFix(), Match(), CSecureRuleDlg::OnInitDialog(), CSecureRuleDlg::OnOK(), Serialize(), ToGnucleusString(), and ToXML(). |
|
Definition at line 95 of file Security.h. Referenced by CSecureRule(), CSecurity::IsDenied(), and Reset(). |
|
Definition at line 89 of file Security.h. Referenced by CSecureRule(), FromGnucleusString(), FromXML(), Match(), CSecureRuleDlg::OnInitDialog(), CSecureRuleDlg::OnOK(), Serialize(), ToGnucleusString(), and ToXML(). |
|
Definition at line 100 of file Security.h. Referenced by CSecureRule(), FromXML(), GetContentWords(), Match(), SetContentWords(), and ~CSecureRule(). |
|
Definition at line 92 of file Security.h. Referenced by CSecureRule(), CSecurity::FromXML(), CSecurity::GetGUID(), Serialize(), and ToXML(). |
|
Definition at line 91 of file Security.h. Referenced by CSecurity::Ban(), FromGnucleusString(), FromXML(), CSecureRuleDlg::OnInitDialog(), CSecureRuleDlg::OnOK(), Serialize(), ToGnucleusString(), and ToXML(). |