"Fossies" - the Fresh Open Source Software Archive

Member "gvmd-9.0.0/src/manage_tls_certificates.h" (11 Oct 2019, 3953 Bytes) of package /linux/misc/openvas/gvmd-9.0.0.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 "manage_tls_certificates.h" see the Fossies "Dox" file reference documentation.

    1 /* Copyright (C) 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 manage_sql_tls_certificates.h
   22  * @brief GVM management layer: TLS Certificates SQL headers
   23  *
   24  * Headers for TLS Certificates SQL for the GVM management layer.
   25  */
   26 
   27 #ifndef _GVMD_MANAGE_TLS_CERTIFICATES_H
   28 #define _GVMD_MANAGE_TLS_CERTIFICATES_H
   29 
   30 #include "manage.h"
   31 #include "iterator.h"
   32 
   33 int
   34 tls_certificate_count (const get_data_t *);
   35 
   36 int
   37 init_tls_certificate_iterator (iterator_t *, const get_data_t *);
   38 
   39 const char*
   40 tls_certificate_iterator_certificate (iterator_t*);
   41 
   42 const char*
   43 tls_certificate_iterator_subject_dn (iterator_t*);
   44 
   45 const char*
   46 tls_certificate_iterator_issuer_dn (iterator_t*);
   47 
   48 int
   49 tls_certificate_iterator_trust (iterator_t *);
   50 
   51 const char*
   52 tls_certificate_iterator_md5_fingerprint (iterator_t*);
   53 
   54 const char*
   55 tls_certificate_iterator_activation_time (iterator_t*);
   56 
   57 const char*
   58 tls_certificate_iterator_expiration_time (iterator_t*);
   59 
   60 int
   61 tls_certificate_iterator_valid (iterator_t *);
   62 
   63 const char*
   64 tls_certificate_iterator_certificate_format (iterator_t*);
   65 
   66 const char*
   67 tls_certificate_iterator_sha256_fingerprint (iterator_t*);
   68 
   69 const char*
   70 tls_certificate_iterator_serial (iterator_t*);
   71 
   72 const char*
   73 tls_certificate_iterator_last_seen (iterator_t*);
   74 
   75 const char*
   76 tls_certificate_iterator_time_status (iterator_t*);
   77 
   78 int
   79 tls_certificate_in_use (tls_certificate_t);
   80 
   81 int
   82 tls_certificate_writable (tls_certificate_t);
   83 
   84 int
   85 create_tls_certificate (const char *, const char *, const char *, int,
   86                         tls_certificate_t *);
   87 
   88 int
   89 copy_tls_certificate (const char*, const char*, const char*,
   90                       tls_certificate_t*);
   91 
   92 int
   93 modify_tls_certificate (const gchar *, const gchar *, const gchar *, int);
   94 
   95 char*
   96 tls_certificate_uuid (tls_certificate_t);
   97 
   98 int
   99 init_tls_certificate_source_iterator (iterator_t *, tls_certificate_t);
  100 
  101 const char *
  102 tls_certificate_source_iterator_uuid (iterator_t *);
  103 
  104 const char *
  105 tls_certificate_source_iterator_timestamp (iterator_t *);
  106 
  107 const char *
  108 tls_certificate_source_iterator_tls_versions (iterator_t *);
  109 
  110 const char *
  111 tls_certificate_source_iterator_location_uuid (iterator_t *);
  112 
  113 const char *
  114 tls_certificate_source_iterator_location_host_ip (iterator_t *);
  115 
  116 const char *
  117 tls_certificate_source_iterator_location_port (iterator_t *);
  118 
  119 const char *
  120 tls_certificate_source_iterator_origin_uuid (iterator_t *);
  121 
  122 const char *
  123 tls_certificate_source_iterator_origin_type (iterator_t *);
  124 
  125 const char *
  126 tls_certificate_source_iterator_origin_id (iterator_t *);
  127 
  128 const char *
  129 tls_certificate_source_iterator_origin_data (iterator_t *);
  130 
  131 resource_t
  132 get_or_make_tls_certificate_location (const char *, const char *);
  133 
  134 resource_t
  135 get_or_make_tls_certificate_origin (const char *, const char *, const char *);
  136 
  137 resource_t
  138 get_or_make_tls_certificate_source (tls_certificate_t,
  139                                     const char *,
  140                                     const char *,
  141                                     const char *,
  142                                     const char *,
  143                                     const char *);
  144 
  145 char *
  146 tls_certificate_host_asset_id (const char *, const char *);
  147 
  148 #endif /* not _GVMD_MANAGE_TLS_CERTIFICATES_H */