blob: 0c836bb63187316bca4b094aaa01fec025ffb663 [file] [log] [blame]
Dmitry Shmidt8d520ff2011-05-09 14:06:53 -07001/*
2 * SSL/TLS interface functions for no TLS case
3 * Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
11 *
12 * See README and COPYING for more details.
13 */
14
15#include "includes.h"
16
17#include "common.h"
18#include "tls.h"
19
20void * tls_init(const struct tls_config *conf)
21{
22 return (void *) 1;
23}
24
25
26void tls_deinit(void *ssl_ctx)
27{
28}
29
30
31int tls_get_errors(void *tls_ctx)
32{
33 return 0;
34}
35
36
37struct tls_connection * tls_connection_init(void *tls_ctx)
38{
39 return NULL;
40}
41
42
43void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn)
44{
45}
46
47
48int tls_connection_established(void *tls_ctx, struct tls_connection *conn)
49{
50 return -1;
51}
52
53
54int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn)
55{
56 return -1;
57}
58
59
60int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
61 const struct tls_connection_params *params)
62{
63 return -1;
64}
65
66
67int tls_global_set_params(void *tls_ctx,
68 const struct tls_connection_params *params)
69{
70 return -1;
71}
72
73
74int tls_global_set_verify(void *tls_ctx, int check_crl)
75{
76 return -1;
77}
78
79
80int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn,
81 int verify_peer)
82{
83 return -1;
84}
85
86
87int tls_connection_set_ia(void *tls_ctx, struct tls_connection *conn,
88 int tls_ia)
89{
90 return -1;
91}
92
93
94int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn,
95 struct tls_keys *keys)
96{
97 return -1;
98}
99
100
101int tls_connection_prf(void *tls_ctx, struct tls_connection *conn,
102 const char *label, int server_random_first,
103 u8 *out, size_t out_len)
104{
105 return -1;
106}
107
108
109struct wpabuf * tls_connection_handshake(void *tls_ctx,
110 struct tls_connection *conn,
111 const struct wpabuf *in_data,
112 struct wpabuf **appl_data)
113{
114 return NULL;
115}
116
117
118struct wpabuf * tls_connection_server_handshake(void *tls_ctx,
119 struct tls_connection *conn,
120 const struct wpabuf *in_data,
121 struct wpabuf **appl_data)
122{
123 return NULL;
124}
125
126
127struct wpabuf * tls_connection_encrypt(void *tls_ctx,
128 struct tls_connection *conn,
129 const struct wpabuf *in_data)
130{
131 return NULL;
132}
133
134
135struct wpabuf * tls_connection_decrypt(void *tls_ctx,
136 struct tls_connection *conn,
137 const struct wpabuf *in_data)
138{
139 return NULL;
140}
141
142
143int tls_connection_resumed(void *tls_ctx, struct tls_connection *conn)
144{
145 return 0;
146}
147
148
149int tls_connection_set_cipher_list(void *tls_ctx, struct tls_connection *conn,
150 u8 *ciphers)
151{
152 return -1;
153}
154
155
156int tls_get_cipher(void *tls_ctx, struct tls_connection *conn,
157 char *buf, size_t buflen)
158{
159 return -1;
160}
161
162
163int tls_connection_enable_workaround(void *tls_ctx,
164 struct tls_connection *conn)
165{
166 return -1;
167}
168
169
170int tls_connection_client_hello_ext(void *tls_ctx, struct tls_connection *conn,
171 int ext_type, const u8 *data,
172 size_t data_len)
173{
174 return -1;
175}
176
177
178int tls_connection_get_failed(void *tls_ctx, struct tls_connection *conn)
179{
180 return 0;
181}
182
183
184int tls_connection_get_read_alerts(void *tls_ctx, struct tls_connection *conn)
185{
186 return 0;
187}
188
189
190int tls_connection_get_write_alerts(void *tls_ctx,
191 struct tls_connection *conn)
192{
193 return 0;
194}
195
196
197int tls_connection_get_keyblock_size(void *tls_ctx,
198 struct tls_connection *conn)
199{
200 return -1;
201}
202
203
204unsigned int tls_capabilities(void *tls_ctx)
205{
206 return 0;
207}
208
209
210struct wpabuf * tls_connection_ia_send_phase_finished(
211 void *tls_ctx, struct tls_connection *conn, int final)
212{
213 return NULL;
214}
215
216
217int tls_connection_ia_final_phase_finished(void *tls_ctx,
218 struct tls_connection *conn)
219{
220 return -1;
221}
222
223
224int tls_connection_ia_permute_inner_secret(void *tls_ctx,
225 struct tls_connection *conn,
226 const u8 *key, size_t key_len)
227{
228 return -1;
229}