/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 gnutls_system_key_iter_get_info(gnutls_system_key_iter_t *iter,  | 
37  |  |             unsigned cert_type, char **cert_url,  | 
38  |  |             char **key_url, char **label,  | 
39  |  |             gnutls_datum_t *der, unsigned int flags)  | 
40  | 0  | { | 
41  | 0  |   return GNUTLS_E_UNIMPLEMENTED_FEATURE;  | 
42  | 0  | }  | 
43  |  |  | 
44  |  | int gnutls_system_key_delete(const char *cert_url, const char *key_url)  | 
45  | 0  | { | 
46  | 0  |   return GNUTLS_E_UNIMPLEMENTED_FEATURE;  | 
47  | 0  | }  | 
48  |  |  | 
49  |  | int gnutls_system_key_add_x509(gnutls_x509_crt_t crt,  | 
50  |  |              gnutls_x509_privkey_t privkey, const char *label,  | 
51  |  |              char **cert_url, char **key_url)  | 
52  | 0  | { | 
53  | 0  |   return GNUTLS_E_UNIMPLEMENTED_FEATURE;  | 
54  | 0  | }  | 
55  |  |  | 
56  |  | int _gnutls_privkey_import_system_url(gnutls_privkey_t pkey, const char *url)  | 
57  | 0  | { | 
58  | 0  |   return GNUTLS_E_UNIMPLEMENTED_FEATURE;  | 
59  | 0  | }  | 
60  |  |  | 
61  |  | int _gnutls_x509_crt_import_system_url(gnutls_x509_crt_t crt, const char *url)  | 
62  | 0  | { | 
63  | 0  |   return GNUTLS_E_UNIMPLEMENTED_FEATURE;  | 
64  | 0  | }  | 
65  |  |  | 
66  |  | int _gnutls_system_key_init(void)  | 
67  | 2  | { | 
68  | 2  |   return 0;  | 
69  | 2  | }  | 
70  |  |  | 
71  |  | void _gnutls_system_key_deinit(void)  | 
72  | 0  | { | 
73  | 0  |   return;  | 
74  | 0  | }  |