Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

signature.c File Reference

#include <string.h>
#include <ctype.h>
#include "signature.h"
#include "util.h"
#include "rules.h"
#include "mstring.h"

Go to the source code of this file.

Functions

ReferenceNodeAddReference (ReferenceNode *rn, char *system, char *id)
void FPrintReference (FILE *fp, ReferenceNode *refNode)
void ParseReference (char *args, OptTreeNode *otn)
ReferenceSystemNodeReferenceSystemAdd (char *name, char *url)
ReferenceSystemNodeReferenceSystemLookup (char *name)
void ParseReferenceSystemConfig (char *args)
void ParseSID (char *sid, OptTreeNode *otn)
void ParseRev (char *rev, OptTreeNode *otn)
int AddClassificationConfig (ClassType *newNode)
void ParsePriority (char *priority, OptTreeNode *otn)
void ParseClassType (char *classtype, OptTreeNode *otn)
ClassTypeClassTypeLookupByType (char *type)
ClassTypeClassTypeLookupById (int id)
void ParseClassificationConfig (char *args)

Variables

char * file_name
int file_line
ReferenceSystemNodereferenceSystems = NULL
ClassTypeclassTypes = NULL


Function Documentation

int AddClassificationConfig ClassType newNode  ) 
 

Definition at line 397 of file signature.c.

References _ClassType::id, _ClassType::next, strcasecmp, and _ClassType::type.

Referenced by ParseClassificationConfig().

ReferenceNode* AddReference ReferenceNode rn,
char *  system,
char *  id
 

Definition at line 33 of file signature.c.

References ErrorMessage(), FatalError(), _ReferenceNode::id, memset, _ReferenceNode::next, NULL, ReferenceSystemAdd(), ReferenceSystemLookup(), and _ReferenceNode::system.

Referenced by ParseReference().

ClassType* ClassTypeLookupById int  id  ) 
 

Definition at line 324 of file signature.c.

References _ClassType::id, _ClassType::next, and NULL.

ClassType* ClassTypeLookupByType char *  type  ) 
 

Definition at line 309 of file signature.c.

References _ClassType::next, NULL, strcasecmp, and _ClassType::type.

Referenced by ParseClassType().

void FPrintReference FILE *  fp,
ReferenceNode refNode
 

Definition at line 64 of file signature.c.

References _ReferenceNode::id, _ReferenceSystemNode::name, _ReferenceNode::system, and _ReferenceSystemNode::url.

Referenced by PrintXrefs().

void ParseClassificationConfig char *  args  ) 
 

Definition at line 337 of file signature.c.

References AddClassificationConfig(), ErrorMessage(), FatalError(), file_line, file_name, memset, mSplit(), mSplitFree(), _ClassType::name, _ClassType::priority, and _ClassType::type.

Referenced by ParseConfig().

void ParseClassType char *  classtype,
OptTreeNode otn
 

Definition at line 268 of file signature.c.

References _SigInfo::class_id, _Event::classification, _SigInfo::classType, ClassTypeLookupByType(), _OptTreeNode::event_data, FatalError(), file_line, file_name, _ClassType::id, LogMessage(), NULL, _Event::priority, _ClassType::priority, _SigInfo::priority, and _OptTreeNode::sigInfo.

Referenced by ParseRuleOptions().

void ParsePriority char *  priority,
OptTreeNode otn
 

Definition at line 240 of file signature.c.

References _OptTreeNode::event_data, file_line, file_name, LogMessage(), NULL, _Event::priority, _SigInfo::priority, and _OptTreeNode::sigInfo.

Referenced by ParseRuleOptions().

void ParseReference char *  args,
OptTreeNode otn
 

Definition at line 85 of file signature.c.

References AddReference(), file_line, file_name, LogMessage(), mSplit(), mSplitFree(), _SigInfo::refs, and _OptTreeNode::sigInfo.

Referenced by ParseRuleOptions().

void ParseReferenceSystemConfig char *  args  ) 
 

Definition at line 154 of file signature.c.

References mSplit(), mSplitFree(), NULL, and ReferenceSystemAdd().

Referenced by ParseConfig().

void ParseRev char *  rev,
OptTreeNode otn
 

Definition at line 207 of file signature.c.

References _OptTreeNode::event_data, file_line, file_name, LogMessage(), NULL, _SigInfo::rev, _Event::sig_rev, and _OptTreeNode::sigInfo.

void ParseSID char *  sid,
OptTreeNode otn
 

Definition at line 182 of file signature.c.

References _OptTreeNode::event_data, file_line, file_name, _SigInfo::id, LogMessage(), NULL, _Event::sig_id, and _OptTreeNode::sigInfo.

ReferenceSystemNode* ReferenceSystemAdd char *  name,
char *  url
 

Definition at line 114 of file signature.c.

References ErrorMessage(), FatalError(), memset, _ReferenceSystemNode::name, _ReferenceSystemNode::next, NULL, and _ReferenceSystemNode::url.

Referenced by AddReference(), and ParseReferenceSystemConfig().

ReferenceSystemNode* ReferenceSystemLookup char *  name  ) 
 

Definition at line 142 of file signature.c.

References _ReferenceSystemNode::name, _ReferenceSystemNode::next, NULL, and strcasecmp.

Referenced by AddReference().


Variable Documentation

ClassType* classTypes = NULL
 

Definition at line 236 of file signature.c.

int file_line
 

Definition at line 88 of file parser.c.

char* file_name
 

external globals from rules.c

Definition at line 87 of file parser.c.

ReferenceSystemNode* referenceSystems = NULL
 

Definition at line 112 of file signature.c.


Generated on Sun May 14 14:51:27 2006 by  doxygen 1.4.2