driver_test: Remove forgotten, unused prototypes
[hostap-gosc2009.git] / src / crypto / tls_none.c
blob0c836bb63187316bca4b094aaa01fec025ffb663
1 /*
2 * SSL/TLS interface functions for no TLS case
3 * Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #include "includes.h"
17 #include "common.h"
18 #include "tls.h"
20 void * tls_init(const struct tls_config *conf)
22 return (void *) 1;
26 void tls_deinit(void *ssl_ctx)
31 int tls_get_errors(void *tls_ctx)
33 return 0;
37 struct tls_connection * tls_connection_init(void *tls_ctx)
39 return NULL;
43 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn)
48 int tls_connection_established(void *tls_ctx, struct tls_connection *conn)
50 return -1;
54 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn)
56 return -1;
60 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
61 const struct tls_connection_params *params)
63 return -1;
67 int tls_global_set_params(void *tls_ctx,
68 const struct tls_connection_params *params)
70 return -1;
74 int tls_global_set_verify(void *tls_ctx, int check_crl)
76 return -1;
80 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn,
81 int verify_peer)
83 return -1;
87 int tls_connection_set_ia(void *tls_ctx, struct tls_connection *conn,
88 int tls_ia)
90 return -1;
94 int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn,
95 struct tls_keys *keys)
97 return -1;
101 int 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)
105 return -1;
109 struct wpabuf * tls_connection_handshake(void *tls_ctx,
110 struct tls_connection *conn,
111 const struct wpabuf *in_data,
112 struct wpabuf **appl_data)
114 return NULL;
118 struct 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 return NULL;
127 struct wpabuf * tls_connection_encrypt(void *tls_ctx,
128 struct tls_connection *conn,
129 const struct wpabuf *in_data)
131 return NULL;
135 struct wpabuf * tls_connection_decrypt(void *tls_ctx,
136 struct tls_connection *conn,
137 const struct wpabuf *in_data)
139 return NULL;
143 int tls_connection_resumed(void *tls_ctx, struct tls_connection *conn)
145 return 0;
149 int tls_connection_set_cipher_list(void *tls_ctx, struct tls_connection *conn,
150 u8 *ciphers)
152 return -1;
156 int tls_get_cipher(void *tls_ctx, struct tls_connection *conn,
157 char *buf, size_t buflen)
159 return -1;
163 int tls_connection_enable_workaround(void *tls_ctx,
164 struct tls_connection *conn)
166 return -1;
170 int tls_connection_client_hello_ext(void *tls_ctx, struct tls_connection *conn,
171 int ext_type, const u8 *data,
172 size_t data_len)
174 return -1;
178 int tls_connection_get_failed(void *tls_ctx, struct tls_connection *conn)
180 return 0;
184 int tls_connection_get_read_alerts(void *tls_ctx, struct tls_connection *conn)
186 return 0;
190 int tls_connection_get_write_alerts(void *tls_ctx,
191 struct tls_connection *conn)
193 return 0;
197 int tls_connection_get_keyblock_size(void *tls_ctx,
198 struct tls_connection *conn)
200 return -1;
204 unsigned int tls_capabilities(void *tls_ctx)
206 return 0;
210 struct wpabuf * tls_connection_ia_send_phase_finished(
211 void *tls_ctx, struct tls_connection *conn, int final)
213 return NULL;
217 int tls_connection_ia_final_phase_finished(void *tls_ctx,
218 struct tls_connection *conn)
220 return -1;
224 int tls_connection_ia_permute_inner_secret(void *tls_ctx,
225 struct tls_connection *conn,
226 const u8 *key, size_t key_len)
228 return -1;