/usr/include/openvas/base/osp.h is in libopenvas-dev 8.0.8-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | /* openvas-libraries/base
* $Id$
* Description: API for OSP communication.
*
* Authors:
* Hani Benhabiles <hani.benhabiles@greenbone.net>
*
* Copyright:
* Copyright (C) 2014 Greenbone Networks GmbH
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef _OPENVAS_OSP_H
#define _OPENVAS_OSP_H
typedef struct osp_connection osp_connection_t;
typedef enum {
OSP_PARAM_TYPE_INT = 0,
OSP_PARAM_TYPE_STR,
OSP_PARAM_TYPE_PASSWORD,
OSP_PARAM_TYPE_FILE,
OSP_PARAM_TYPE_BOOLEAN,
OSP_PARAM_TYPE_OVALDEF_FILE,
OSP_PARAM_TYPE_SELECTION,
} osp_param_type_t;
typedef struct osp_param osp_param_t;
osp_connection_t *
osp_connection_new (const char *, int, const char *, const char *,
const char *);
int
osp_get_version (osp_connection_t *, char **, char **, char **, char **,
char **, char **);
char *
osp_start_scan (osp_connection_t *, const char *, GHashTable *);
int
osp_get_scan (osp_connection_t *, const char *, char **, int);
int
osp_delete_scan (osp_connection_t *, const char *);
int
osp_get_scanner_details (osp_connection_t *, char **, GSList **);
osp_param_t *
osp_param_new (void);
const char *
osp_param_id (osp_param_t *);
const char *
osp_param_name (osp_param_t *);
const char *
osp_param_desc (osp_param_t *);
const char *
osp_param_default (osp_param_t *);
const char *
osp_param_type_str (const osp_param_t *);
void
osp_param_free (osp_param_t *);
void
osp_connection_close (osp_connection_t *);
#endif
|