ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/tls_none.c
Revision: 8751
Committed: Tue Jan 1 11:06:50 2019 UTC (5 years, 3 months ago) by michael
Content type: text/x-csrc
File size: 2129 byte(s)
Log Message:
- Update copyright years

File Contents

# Content
1 /*
2 * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3 *
4 * Copyright (c) 2015 Attila Molnar <attilamolnar@hush.com>
5 * Copyright (c) 2015 Adam <Adam@anope.org>
6 * Copyright (c) 2015-2019 ircd-hybrid development team
7 *
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 bool
35 tls_is_initialized(void)
36 {
37 return false;
38 }
39
40 void
41 tls_init(void)
42 {
43 }
44
45 bool
46 tls_new_cred(void)
47 {
48 return true;
49 }
50
51 const char *
52 tls_get_cipher(const tls_data_t *tls_data)
53 {
54 return NULL;
55 }
56
57 const char *
58 tls_get_version(void)
59 {
60 return NULL;
61 }
62
63 bool
64 tls_isusing(tls_data_t *tls_data)
65 {
66 return false;
67 }
68
69 void
70 tls_free(tls_data_t *tls_data)
71 {
72 }
73
74 int
75 tls_read(tls_data_t *tls_data, char *buf, size_t bufsize, bool *want_write)
76 {
77 return -1;
78 }
79
80 int
81 tls_write(tls_data_t *tls_data, const char *buf, size_t bufsize, bool *want_read)
82 {
83 return -1;
84 }
85
86 void
87 tls_shutdown(tls_data_t *tls_data)
88 {
89 }
90
91 bool
92 tls_new(tls_data_t *tls_data, int fd, tls_role_t role)
93 {
94 return false;
95 }
96
97 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 bool
104 tls_set_ciphers(tls_data_t *tls_data, const char *cipher_list)
105 {
106 return false;
107 }
108
109 bool
110 tls_verify_cert(tls_data_t *tls_data, tls_md_t digest, char **fingerprint)
111 {
112 return false;
113 }
114 #endif /* HAVE_TLS */

Properties

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