ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/tls_none.c
Revision: 9224
Committed: Sun Jan 26 11:35:42 2020 UTC (6 years, 8 months ago) by michael
Content type: text/x-csrc
File size: 2151 byte(s)
Log Message:
- Renamings:
    tls_new_cred -> tls_new_credentials
    tls_free_cred -> tls_free_credentials
    tls_verify_cert -> tls_verify_certificate

File Contents

# User Rev Content
1 michael 7105 /*
2     * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3     *
4 michael 7164 * Copyright (c) 2015 Attila Molnar <attilamolnar@hush.com>
5     * Copyright (c) 2015 Adam <Adam@anope.org>
6 michael 9101 * Copyright (c) 2015-2020 ircd-hybrid development team
7 michael 7105 *
8     * This program is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License as published by
10     * the Free Software Foundation; either version 2 of the License, or
11     * (at your option) any later version.
12     *
13     * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17     *
18     * You should have received a copy of the GNU General Public License
19     * along with this program; if not, write to the Free Software
20     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
21     * USA
22     */
23    
24     /*! \file tls_none.c
25     * \brief Dummy file for no TLS support
26     * \version $Id$
27     */
28    
29     #include "stdinc.h"
30     #include "tls.h"
31    
32     #ifndef HAVE_TLS
33    
34 michael 8664 bool
35 michael 7271 tls_is_initialized(void)
36     {
37 michael 8664 return false;
38 michael 7271 }
39    
40 michael 7105 void
41     tls_init(void)
42     {
43     }
44    
45 michael 8664 bool
46 michael 9224 tls_new_credentials(void)
47 michael 7105 {
48 michael 8666 return true;
49 michael 7105 }
50    
51     const char *
52     tls_get_cipher(const tls_data_t *tls_data)
53     {
54     return NULL;
55     }
56    
57 michael 7708 const char *
58     tls_get_version(void)
59     {
60     return NULL;
61     }
62    
63 michael 8664 bool
64 michael 7105 tls_isusing(tls_data_t *tls_data)
65     {
66 michael 8664 return false;
67 michael 7105 }
68    
69     void
70     tls_free(tls_data_t *tls_data)
71     {
72     }
73    
74 michael 8956 ssize_t
75 michael 8660 tls_read(tls_data_t *tls_data, char *buf, size_t bufsize, bool *want_write)
76 michael 7105 {
77     return -1;
78     }
79    
80 michael 8956 ssize_t
81 michael 8660 tls_write(tls_data_t *tls_data, const char *buf, size_t bufsize, bool *want_read)
82 michael 7105 {
83     return -1;
84     }
85    
86     void
87     tls_shutdown(tls_data_t *tls_data)
88     {
89     }
90    
91 michael 8664 bool
92 michael 7105 tls_new(tls_data_t *tls_data, int fd, tls_role_t role)
93     {
94 michael 8664 return false;
95 michael 7105 }
96    
97 michael 7275 tls_handshake_status_t
98     tls_handshake(tls_data_t *tls_data, tls_role_t role, const char **errstr)
99     {
100     return 0;
101     }
102    
103 michael 8664 bool
104 michael 7105 tls_set_ciphers(tls_data_t *tls_data, const char *cipher_list)
105     {
106 michael 8664 return false;
107 michael 7105 }
108    
109 michael 8664 bool
110 michael 9224 tls_verify_certificate(tls_data_t *tls_data, tls_md_t digest, char **fingerprint)
111 michael 7105 {
112 michael 8664 return false;
113 michael 7105 }
114     #endif /* HAVE_TLS */

Properties

Name Value
svn:eol-style native
svn:keywords Id