tls_none.c
Go to the documentation of this file.
00001 /*
00002  * SSL/TLS interface functions for no TLS case
00003  * Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #include "includes.h"
00016 
00017 #include "common.h"
00018 #include "tls.h"
00019 
00020 void * tls_init(const struct tls_config *conf)
00021 {
00022         return (void *) 1;
00023 }
00024 
00025 
00026 void tls_deinit(void *ssl_ctx)
00027 {
00028 }
00029 
00030 
00031 int tls_get_errors(void *tls_ctx)
00032 {
00033         return 0;
00034 }
00035 
00036 
00037 struct tls_connection * tls_connection_init(void *tls_ctx)
00038 {
00039         return NULL;
00040 }
00041 
00042 
00043 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn)
00044 {
00045 }
00046 
00047 
00048 int tls_connection_established(void *tls_ctx, struct tls_connection *conn)
00049 {
00050         return -1;
00051 }
00052 
00053 
00054 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn)
00055 {
00056         return -1;
00057 }
00058 
00059 
00060 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
00061                               const struct tls_connection_params *params)
00062 {
00063         return -1;
00064 }
00065 
00066 
00067 int tls_global_set_params(void *tls_ctx,
00068                           const struct tls_connection_params *params)
00069 {
00070         return -1;
00071 }
00072 
00073 
00074 int tls_global_set_verify(void *tls_ctx, int check_crl)
00075 {
00076         return -1;
00077 }
00078 
00079 
00080 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn,
00081                               int verify_peer)
00082 {
00083         return -1;
00084 }
00085 
00086 
00087 int tls_connection_set_ia(void *tls_ctx, struct tls_connection *conn,
00088                           int tls_ia)
00089 {
00090         return -1;
00091 }
00092 
00093 
00094 int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn,
00095                             struct tls_keys *keys)
00096 {
00097         return -1;
00098 }
00099 
00100 
00101 int tls_connection_prf(void *tls_ctx, struct tls_connection *conn,
00102                        const char *label, int server_random_first,
00103                        u8 *out, size_t out_len)
00104 {
00105         return -1;
00106 }
00107 
00108 
00109 struct wpabuf * tls_connection_handshake(void *tls_ctx,
00110                                          struct tls_connection *conn,
00111                                          const struct wpabuf *in_data,
00112                                          struct wpabuf **appl_data)
00113 {
00114         return NULL;
00115 }
00116 
00117 
00118 struct wpabuf * tls_connection_server_handshake(void *tls_ctx,
00119                                                 struct tls_connection *conn,
00120                                                 const struct wpabuf *in_data,
00121                                                 struct wpabuf **appl_data)
00122 {
00123         return NULL;
00124 }
00125 
00126 
00127 struct wpabuf * tls_connection_encrypt(void *tls_ctx,
00128                                        struct tls_connection *conn,
00129                                        const struct wpabuf *in_data)
00130 {
00131         return NULL;
00132 }
00133 
00134 
00135 struct wpabuf * tls_connection_decrypt(void *tls_ctx,
00136                                        struct tls_connection *conn,
00137                                        const struct wpabuf *in_data)
00138 {
00139         return NULL;
00140 }
00141 
00142 
00143 int tls_connection_resumed(void *tls_ctx, struct tls_connection *conn)
00144 {
00145         return 0;
00146 }
00147 
00148 
00149 int tls_connection_set_cipher_list(void *tls_ctx, struct tls_connection *conn,
00150                                    u8 *ciphers)
00151 {
00152         return -1;
00153 }
00154 
00155 
00156 int tls_get_cipher(void *tls_ctx, struct tls_connection *conn,
00157                    char *buf, size_t buflen)
00158 {
00159         return -1;
00160 }
00161 
00162 
00163 int tls_connection_enable_workaround(void *tls_ctx,
00164                                      struct tls_connection *conn)
00165 {
00166         return -1;
00167 }
00168 
00169 
00170 int tls_connection_client_hello_ext(void *tls_ctx, struct tls_connection *conn,
00171                                     int ext_type, const u8 *data,
00172                                     size_t data_len)
00173 {
00174         return -1;
00175 }
00176 
00177 
00178 int tls_connection_get_failed(void *tls_ctx, struct tls_connection *conn)
00179 {
00180         return 0;
00181 }
00182 
00183 
00184 int tls_connection_get_read_alerts(void *tls_ctx, struct tls_connection *conn)
00185 {
00186         return 0;
00187 }
00188 
00189 
00190 int tls_connection_get_write_alerts(void *tls_ctx,
00191                                     struct tls_connection *conn)
00192 {
00193         return 0;
00194 }
00195 
00196 
00197 int tls_connection_get_keyblock_size(void *tls_ctx,
00198                                      struct tls_connection *conn)
00199 {
00200         return -1;
00201 }
00202 
00203 
00204 unsigned int tls_capabilities(void *tls_ctx)
00205 {
00206         return 0;
00207 }
00208 
00209 
00210 struct wpabuf * tls_connection_ia_send_phase_finished(
00211         void *tls_ctx, struct tls_connection *conn, int final)
00212 {
00213         return NULL;
00214 }
00215 
00216 
00217 int tls_connection_ia_final_phase_finished(void *tls_ctx,
00218                                            struct tls_connection *conn)
00219 {
00220         return -1;
00221 }
00222 
00223 
00224 int tls_connection_ia_permute_inner_secret(void *tls_ctx,
00225                                            struct tls_connection *conn,
00226                                            const u8 *key, size_t key_len)
00227 {
00228         return -1;
00229 }


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:36