]> git.ipfire.org Git - thirdparty/hostap.git/blame - src/crypto/tls_none.c
Remove the GPL notification from files contributed by Jouni Malinen
[thirdparty/hostap.git] / src / crypto / tls_none.c
CommitLineData
6fc6879b 1/*
81c85c06
JM
2 * SSL/TLS interface functions for no TLS case
3 * Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
6fc6879b 4 *
0f3d578e
JM
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
6fc6879b
JM
7 */
8
9#include "includes.h"
10
11#include "common.h"
12#include "tls.h"
13
14void * tls_init(const struct tls_config *conf)
15{
16 return (void *) 1;
17}
18
81c85c06 19
6fc6879b
JM
20void tls_deinit(void *ssl_ctx)
21{
22}
23
24
6fc6879b
JM
25int tls_get_errors(void *tls_ctx)
26{
27 return 0;
28}
29
30
31struct tls_connection * tls_connection_init(void *tls_ctx)
32{
33 return NULL;
34}
35
36
37void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn)
38{
39}
40
41
42int tls_connection_established(void *tls_ctx, struct tls_connection *conn)
43{
44 return -1;
45}
46
47
48int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn)
49{
50 return -1;
51}
52
53
54int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
55 const struct tls_connection_params *params)
56{
57 return -1;
58}
59
60
61int tls_global_set_params(void *tls_ctx,
62 const struct tls_connection_params *params)
63{
64 return -1;
65}
66
67
68int tls_global_set_verify(void *tls_ctx, int check_crl)
69{
70 return -1;
71}
72
73
74int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn,
75 int verify_peer)
76{
77 return -1;
78}
79
80
6fc6879b
JM
81int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn,
82 struct tls_keys *keys)
83{
84 return -1;
85}
86
87
88int tls_connection_prf(void *tls_ctx, struct tls_connection *conn,
89 const char *label, int server_random_first,
90 u8 *out, size_t out_len)
91{
92 return -1;
93}
94
95
81c85c06
JM
96struct wpabuf * tls_connection_handshake(void *tls_ctx,
97 struct tls_connection *conn,
98 const struct wpabuf *in_data,
99 struct wpabuf **appl_data)
6fc6879b
JM
100{
101 return NULL;
102}
103
104
81c85c06
JM
105struct wpabuf * tls_connection_server_handshake(void *tls_ctx,
106 struct tls_connection *conn,
107 const struct wpabuf *in_data,
108 struct wpabuf **appl_data)
6fc6879b
JM
109{
110 return NULL;
111}
112
113
81c85c06
JM
114struct wpabuf * tls_connection_encrypt(void *tls_ctx,
115 struct tls_connection *conn,
116 const struct wpabuf *in_data)
6fc6879b 117{
81c85c06 118 return NULL;
6fc6879b
JM
119}
120
121
81c85c06
JM
122struct wpabuf * tls_connection_decrypt(void *tls_ctx,
123 struct tls_connection *conn,
124 const struct wpabuf *in_data)
6fc6879b 125{
81c85c06 126 return NULL;
6fc6879b
JM
127}
128
129
130int tls_connection_resumed(void *tls_ctx, struct tls_connection *conn)
131{
132 return 0;
133}
134
135
136int tls_connection_set_cipher_list(void *tls_ctx, struct tls_connection *conn,
137 u8 *ciphers)
138{
139 return -1;
140}
141
142
143int tls_get_cipher(void *tls_ctx, struct tls_connection *conn,
144 char *buf, size_t buflen)
145{
146 return -1;
147}
148
149
150int tls_connection_enable_workaround(void *tls_ctx,
151 struct tls_connection *conn)
152{
153 return -1;
154}
155
156
157int tls_connection_client_hello_ext(void *tls_ctx, struct tls_connection *conn,
158 int ext_type, const u8 *data,
159 size_t data_len)
160{
161 return -1;
162}
163
164
165int tls_connection_get_failed(void *tls_ctx, struct tls_connection *conn)
166{
167 return 0;
168}
169
170
171int tls_connection_get_read_alerts(void *tls_ctx, struct tls_connection *conn)
172{
173 return 0;
174}
175
176
177int tls_connection_get_write_alerts(void *tls_ctx,
178 struct tls_connection *conn)
179{
180 return 0;
181}
182
183
184int tls_connection_get_keyblock_size(void *tls_ctx,
185 struct tls_connection *conn)
186{
187 return -1;
188}
189
190
191unsigned int tls_capabilities(void *tls_ctx)
192{
193 return 0;
194}