MCPcopy Create free account
hub / github.com/codeyourweb/irma / CompileRules

Function CompileRules

yaraProcessing.go:116–124  ·  view source on GitHub ↗

CompileRules try to compile every rules from the given compiler

(compiler *yara.Compiler)

Source from the content-addressed store, hash-verified

114
115// CompileRules try to compile every rules from the given compiler
116func CompileRules(compiler *yara.Compiler) (rules *yara.Rules, err error) {
117
118 rules, err = compiler.GetRules()
119 if err != nil {
120 return nil, errors.New("Failed to compile rules")
121 }
122
123 return rules, err
124}
125
126// YaraScan use libyara to scan the specified content with a compiled rule
127func YaraScan(content []byte, rules *yara.Rules) (match yara.MatchRules, err error) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected