Coverage Report

Created: 2023-03-26 07:33

/src/gnutls/lib/system/keys-dummy.c
Line
Count
Source (jump to first uncovered line)
1
/*
2
 * Copyright © 2014 Red Hat, Inc.
3
 *
4
 * Author: Nikos Mavrogiannopoulos
5
 *
6
 * GnuTLS is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU Lesser General Public License
8
 * as published by the Free Software Foundation; either version 2.1 of
9
 * the License, or (at your option) any later version.
10
 *
11
 * This library is distributed in the hope that it will be useful, but
12
 * WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 * Lesser General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU Lesser General Public License
17
 * along with this program.  If not, see <https://www.gnu.org/licenses/>
18
 *
19
 */
20
21
#include "gnutls_int.h"
22
#include "errors.h"
23
#include <gnutls/gnutls.h>
24
#include <gnutls/abstract.h>
25
#include <gnutls/pkcs12.h>
26
#include <gnutls/system-keys.h>
27
#include "system-keys.h"
28
#include <tls-sig.h>
29
#include <pk.h>
30
31
void gnutls_system_key_iter_deinit(gnutls_system_key_iter_t iter)
32
0
{
33
0
  return;
34
0
}
35
36
int
37
gnutls_system_key_iter_get_info(gnutls_system_key_iter_t * iter,
38
        unsigned cert_type,
39
        char **cert_url,
40
        char **key_url,
41
        char **label,
42
        gnutls_datum_t * der, unsigned int flags)
43
0
{
44
0
  return GNUTLS_E_UNIMPLEMENTED_FEATURE;
45
0
}
46
47
int gnutls_system_key_delete(const char *cert_url, const char *key_url)
48
0
{
49
0
  return GNUTLS_E_UNIMPLEMENTED_FEATURE;
50
0
}
51
52
int gnutls_system_key_add_x509(gnutls_x509_crt_t crt,
53
             gnutls_x509_privkey_t privkey, const char *label,
54
             char **cert_url, char **key_url)
55
0
{
56
0
  return GNUTLS_E_UNIMPLEMENTED_FEATURE;
57
0
}
58
59
int _gnutls_privkey_import_system_url(gnutls_privkey_t pkey, const char *url)
60
0
{
61
0
  return GNUTLS_E_UNIMPLEMENTED_FEATURE;
62
0
}
63
64
int _gnutls_x509_crt_import_system_url(gnutls_x509_crt_t crt, const char *url)
65
0
{
66
0
  return GNUTLS_E_UNIMPLEMENTED_FEATURE;
67
0
}
68
69
int _gnutls_system_key_init(void)
70
2
{
71
2
  return 0;
72
2
}
73
74
void _gnutls_system_key_deinit(void)
75
0
{
76
0
  return;
77
0
}