cve-toolkit

CVE helper toolkit
git clone git://git.finwo.net/app/cve-toolkit
Log | Files | Refs | README | LICENSE

setup.h (756B)


      1 #ifndef __CVETK_DETECTOR_SETUP_H__
      2 #define __CVETK_DETECTOR_SETUP_H__
      3 
      4 #ifdef __cplusplus
      5 extern "C" {
      6 #endif
      7 
      8 #include <stddef.h>
      9 
     10 struct detector_queue_entry {
     11   int (*handler)(int);
     12   const char *name;
     13   const char *remediation;
     14   int         result;
     15 };
     16 
     17 extern struct detector_queue_entry **detector_queue;
     18 extern int                           detector_queue_cap;
     19 extern int                           detector_queue_length;
     20 extern int                           detector_total;
     21 extern int                           detector_pass;
     22 extern int                           detector_fail;
     23 
     24 void detector_queue_append(const char *name, const char *remediation, int (*fn)(int));
     25 
     26 #ifdef __cplusplus
     27 }  // extern "C"
     28 #endif
     29 
     30 #endif  // __CVETK_DETECTOR_SETUP_H__