00001
00016 #include "includes.h"
00017
00018 #include "common.h"
00019 #include "tls.h"
00020
00021 void * tls_init(const struct tls_config *conf)
00022 {
00023 return (void *) 1;
00024 }
00025
00026 void tls_deinit(void *ssl_ctx)
00027 {
00028 }
00029
00030
00031 #ifdef EAP_TLS_NONE
00032
00033 int tls_get_errors(void *tls_ctx)
00034 {
00035 return 0;
00036 }
00037
00038
00039 struct tls_connection * tls_connection_init(void *tls_ctx)
00040 {
00041 return NULL;
00042 }
00043
00044
00045 void tls_connection_deinit(void *tls_ctx, struct tls_connection *conn)
00046 {
00047 }
00048
00049
00050 int tls_connection_established(void *tls_ctx, struct tls_connection *conn)
00051 {
00052 return -1;
00053 }
00054
00055
00056 int tls_connection_shutdown(void *tls_ctx, struct tls_connection *conn)
00057 {
00058 return -1;
00059 }
00060
00061
00062 int tls_connection_set_params(void *tls_ctx, struct tls_connection *conn,
00063 const struct tls_connection_params *params)
00064 {
00065 return -1;
00066 }
00067
00068
00069 int tls_global_set_params(void *tls_ctx,
00070 const struct tls_connection_params *params)
00071 {
00072 return -1;
00073 }
00074
00075
00076 int tls_global_set_verify(void *tls_ctx, int check_crl)
00077 {
00078 return -1;
00079 }
00080
00081
00082 int tls_connection_set_verify(void *tls_ctx, struct tls_connection *conn,
00083 int verify_peer)
00084 {
00085 return -1;
00086 }
00087
00088
00089 int tls_connection_set_ia(void *tls_ctx, struct tls_connection *conn,
00090 int tls_ia)
00091 {
00092 return -1;
00093 }
00094
00095
00096 int tls_connection_get_keys(void *tls_ctx, struct tls_connection *conn,
00097 struct tls_keys *keys)
00098 {
00099 return -1;
00100 }
00101
00102
00103 int tls_connection_prf(void *tls_ctx, struct tls_connection *conn,
00104 const char *label, int server_random_first,
00105 u8 *out, size_t out_len)
00106 {
00107 return -1;
00108 }
00109
00110
00111 u8 * tls_connection_handshake(void *tls_ctx, struct tls_connection *conn,
00112 const u8 *in_data, size_t in_len,
00113 size_t *out_len, u8 **appl_data,
00114 size_t *appl_data_len)
00115 {
00116 return NULL;
00117 }
00118
00119
00120 u8 * tls_connection_server_handshake(void *tls_ctx,
00121 struct tls_connection *conn,
00122 const u8 *in_data, size_t in_len,
00123 size_t *out_len)
00124 {
00125 return NULL;
00126 }
00127
00128
00129 int tls_connection_encrypt(void *tls_ctx, struct tls_connection *conn,
00130 const u8 *in_data, size_t in_len,
00131 u8 *out_data, size_t out_len)
00132 {
00133 return -1;
00134 }
00135
00136
00137 int tls_connection_decrypt(void *tls_ctx, struct tls_connection *conn,
00138 const u8 *in_data, size_t in_len,
00139 u8 *out_data, size_t out_len)
00140 {
00141 return -1;
00142 }
00143
00144
00145 int tls_connection_resumed(void *tls_ctx, struct tls_connection *conn)
00146 {
00147 return 0;
00148 }
00149
00150
00151 int tls_connection_set_cipher_list(void *tls_ctx, struct tls_connection *conn,
00152 u8 *ciphers)
00153 {
00154 return -1;
00155 }
00156
00157
00158 int tls_get_cipher(void *tls_ctx, struct tls_connection *conn,
00159 char *buf, size_t buflen)
00160 {
00161 return -1;
00162 }
00163
00164
00165 int tls_connection_enable_workaround(void *tls_ctx,
00166 struct tls_connection *conn)
00167 {
00168 return -1;
00169 }
00170
00171
00172 int tls_connection_client_hello_ext(void *tls_ctx, struct tls_connection *conn,
00173 int ext_type, const u8 *data,
00174 size_t data_len)
00175 {
00176 return -1;
00177 }
00178
00179
00180 int tls_connection_get_failed(void *tls_ctx, struct tls_connection *conn)
00181 {
00182 return 0;
00183 }
00184
00185
00186 int tls_connection_get_read_alerts(void *tls_ctx, struct tls_connection *conn)
00187 {
00188 return 0;
00189 }
00190
00191
00192 int tls_connection_get_write_alerts(void *tls_ctx,
00193 struct tls_connection *conn)
00194 {
00195 return 0;
00196 }
00197
00198
00199 int tls_connection_get_keyblock_size(void *tls_ctx,
00200 struct tls_connection *conn)
00201 {
00202 return -1;
00203 }
00204
00205
00206 unsigned int tls_capabilities(void *tls_ctx)
00207 {
00208 return 0;
00209 }
00210
00211
00212 int tls_connection_ia_send_phase_finished(void *tls_ctx,
00213 struct tls_connection *conn,
00214 int final,
00215 u8 *out_data, size_t out_len)
00216 {
00217 return -1;
00218 }
00219
00220
00221 int tls_connection_ia_final_phase_finished(void *tls_ctx,
00222 struct tls_connection *conn)
00223 {
00224 return -1;
00225 }
00226
00227
00228 int tls_connection_ia_permute_inner_secret(void *tls_ctx,
00229 struct tls_connection *conn,
00230 const u8 *key, size_t key_len)
00231 {
00232 return -1;
00233 }
00234
00235 #endif
00236