"Fossies" - the Fresh Open Source Software Archive

Member "gvm-libs-11.0.1/util/nvticache.h" (12 May 2020, 2550 Bytes) of package /linux/misc/openvas/gvm-libs-11.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "nvticache.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.0-beta2_vs_1.0.0.

    1 /* Copyright (C) 2009-2019 Greenbone Networks GmbH
    2  *
    3  * SPDX-License-Identifier: GPL-2.0-or-later
    4  *
    5  * This program is free software; you can redistribute it and/or
    6  * modify it under the terms of the GNU General Public License
    7  * as published by the Free Software Foundation; either version 2
    8  * of the License, or (at your option) any later version.
    9  *
   10  * This program is distributed in the hope that it will be useful,
   11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  * GNU General Public License for more details.
   14  *
   15  * You should have received a copy of the GNU General Public License
   16  * along with this program; if not, write to the Free Software
   17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   18  */
   19 
   20 /**
   21  * @file
   22  * @brief Protos and data structures for NVT Information Cache.
   23  *
   24  * This file contains the protos for \ref nvticache.c
   25  */
   26 
   27 #ifndef _GVM_NVTICACHE_H
   28 #define _GVM_NVTICACHE_H
   29 
   30 #include "../base/nvti.h" /* for nvti_t */
   31 #include "kb.h"           /* for kb_t */
   32 
   33 #include <glib.h> /* for gchar */
   34 
   35 #ifndef NVTICACHE_STR
   36 #define NVTICACHE_STR "nvticache10"
   37 #endif
   38 
   39 int
   40 nvticache_init (const char *, const char *);
   41 
   42 void
   43 nvticache_reset ();
   44 
   45 kb_t
   46 nvticache_get_kb ();
   47 
   48 void
   49 nvticache_save ();
   50 
   51 int
   52 nvticache_initialized (void);
   53 
   54 int
   55 nvticache_check (const gchar *);
   56 
   57 int
   58 nvticache_add (const nvti_t *, const char *);
   59 
   60 char *
   61 nvticache_get_src (const char *);
   62 
   63 char *
   64 nvticache_get_oid (const char *);
   65 
   66 char *
   67 nvticache_get_name (const char *);
   68 
   69 char *
   70 nvticache_get_tags (const char *);
   71 
   72 GSList *
   73 nvticache_get_prefs (const char *);
   74 
   75 char *
   76 nvticache_get_cves (const char *);
   77 
   78 char *
   79 nvticache_get_bids (const char *);
   80 
   81 char *
   82 nvticache_get_xrefs (const char *);
   83 
   84 char *
   85 nvticache_get_family (const char *);
   86 
   87 char *
   88 nvticache_get_filename (const char *);
   89 
   90 char *
   91 nvticache_get_required_keys (const char *);
   92 
   93 char *
   94 nvticache_get_mandatory_keys (const char *);
   95 
   96 char *
   97 nvticache_get_excluded_keys (const char *);
   98 
   99 char *
  100 nvticache_get_required_ports (const char *);
  101 
  102 char *
  103 nvticache_get_required_udp_ports (const char *);
  104 
  105 int
  106 nvticache_get_category (const char *);
  107 
  108 int
  109 nvticache_get_timeout (const char *);
  110 
  111 char *
  112 nvticache_get_dependencies (const char *);
  113 
  114 nvti_t *
  115 nvticache_get_nvt (const char *);
  116 
  117 GSList *
  118 nvticache_get_oids (void);
  119 
  120 size_t
  121 nvticache_count (void);
  122 
  123 void
  124 nvticache_delete (const char *);
  125 
  126 char *
  127 nvticache_feed_version (void);
  128 
  129 int
  130 nvticache_check_feed (void);
  131 
  132 #endif /* not _GVM_NVTICACHE_H */