Deleted Added
full compact
tls_none.c (189261) tls_none.c (214734)
1/*
1/*
2 * WPA Supplicant / SSL/TLS interface functions for no TLS case
3 * Copyright (c) 2004, Jouni Malinen
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 *

--- 5 unchanged lines hidden (view full) ---

17#include "common.h"
18#include "tls.h"
19
20void * tls_init(const struct tls_config *conf)
21{
22 return (void *) 1;
23}
24
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 *

--- 5 unchanged lines hidden (view full) ---

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
25void tls_deinit(void *ssl_ctx)
26{
27}
28
29
26void tls_deinit(void *ssl_ctx)
27{
28}
29
30
30#ifdef EAP_TLS_NONE
31
32int tls_get_errors(void *tls_ctx)
33{
34 return 0;
35}
36
37
38struct tls_connection * tls_connection_init(void *tls_ctx)
39{

--- 62 unchanged lines hidden (view full) ---

102int tls_connection_prf(void *tls_ctx, struct tls_connection *conn,
103 const char *label, int server_random_first,
104 u8 *out, size_t out_len)
105{
106 return -1;
107}
108
109
31int tls_get_errors(void *tls_ctx)
32{
33 return 0;
34}
35
36
37struct tls_connection * tls_connection_init(void *tls_ctx)
38{

--- 62 unchanged lines hidden (view full) ---

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
110u8 * tls_connection_handshake(void *tls_ctx, struct tls_connection *conn,
111 const u8 *in_data, size_t in_len,
112 size_t *out_len, u8 **appl_data,
113 size_t *appl_data_len)
109struct wpabuf * tls_connection_handshake(void *tls_ctx,
110 struct tls_connection *conn,
111 const struct wpabuf *in_data,
112 struct wpabuf **appl_data)
114{
115 return NULL;
116}
117
118
113{
114 return NULL;
115}
116
117
119u8 * tls_connection_server_handshake(void *tls_ctx,
120 struct tls_connection *conn,
121 const u8 *in_data, size_t in_len,
122 size_t *out_len)
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)
123{
124 return NULL;
125}
126
127
122{
123 return NULL;
124}
125
126
128int tls_connection_encrypt(void *tls_ctx, struct tls_connection *conn,
129 const u8 *in_data, size_t in_len,
130 u8 *out_data, size_t out_len)
127struct wpabuf * tls_connection_encrypt(void *tls_ctx,
128 struct tls_connection *conn,
129 const struct wpabuf *in_data)
131{
130{
132 return -1;
131 return NULL;
133}
134
135
132}
133
134
136int tls_connection_decrypt(void *tls_ctx, struct tls_connection *conn,
137 const u8 *in_data, size_t in_len,
138 u8 *out_data, size_t out_len)
135struct wpabuf * tls_connection_decrypt(void *tls_ctx,
136 struct tls_connection *conn,
137 const struct wpabuf *in_data)
139{
138{
140 return -1;
139 return NULL;
141}
142
143
144int tls_connection_resumed(void *tls_ctx, struct tls_connection *conn)
145{
146 return 0;
147}
148

--- 54 unchanged lines hidden (view full) ---

203
204
205unsigned int tls_capabilities(void *tls_ctx)
206{
207 return 0;
208}
209
210
140}
141
142
143int tls_connection_resumed(void *tls_ctx, struct tls_connection *conn)
144{
145 return 0;
146}
147

--- 54 unchanged lines hidden (view full) ---

202
203
204unsigned int tls_capabilities(void *tls_ctx)
205{
206 return 0;
207}
208
209
211int tls_connection_ia_send_phase_finished(void *tls_ctx,
212 struct tls_connection *conn,
213 int final,
214 u8 *out_data, size_t out_len)
210struct wpabuf * tls_connection_ia_send_phase_finished(
211 void *tls_ctx, struct tls_connection *conn, int final)
215{
212{
216 return -1;
213 return NULL;
217}
218
219
220int tls_connection_ia_final_phase_finished(void *tls_ctx,
221 struct tls_connection *conn)
222{
223 return -1;
224}
225
226
227int tls_connection_ia_permute_inner_secret(void *tls_ctx,
228 struct tls_connection *conn,
229 const u8 *key, size_t key_len)
230{
231 return -1;
232}
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}
233
234#endif /* EAP_TLS_NONE */