~ubuntu-branches/ubuntu/gutsy/wpasupplicant/gutsy

« back to all changes in this revision

Viewing changes to src/tls/tlsv1_client.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler, Alexander Sack
  • Date: 2007-08-26 16:06:57 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070826160657-2m8pxoweuxe8f93t
Tags: 0.6.0+0.5.8-0ubuntu1
* New upstream release
* remove patch 11_erroneous_manpage_ref, applied upstream
* remove patch 25_wpas_dbus_unregister_iface_fix, applied upstream

[ Alexander Sack ]
* bumping upstream version to replace development version 0.6.0 with
  this package from stable release branch.
* attempt to fix wierd timeout and high latency issues by going
  back to stable upstream version (0.5.9) (LP: #140763,
  LP: #141233).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * wpa_supplicant: TLSv1 client (RFC 2246)
3
 
 * Copyright (c) 2006, 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
 
#ifndef TLSV1_CLIENT_H
16
 
#define TLSV1_CLIENT_H
17
 
 
18
 
struct tlsv1_client;
19
 
 
20
 
int tlsv1_client_global_init(void);
21
 
void tlsv1_client_global_deinit(void);
22
 
struct tlsv1_client * tlsv1_client_init(void);
23
 
void tlsv1_client_deinit(struct tlsv1_client *conn);
24
 
int tlsv1_client_established(struct tlsv1_client *conn);
25
 
int tlsv1_client_prf(struct tlsv1_client *conn, const char *label,
26
 
                     int server_random_first, u8 *out, size_t out_len);
27
 
u8 * tlsv1_client_handshake(struct tlsv1_client *conn,
28
 
                            const u8 *in_data, size_t in_len,
29
 
                            size_t *out_len, u8 **appl_data,
30
 
                            size_t *appl_data_len);
31
 
int tlsv1_client_encrypt(struct tlsv1_client *conn,
32
 
                         const u8 *in_data, size_t in_len,
33
 
                         u8 *out_data, size_t out_len);
34
 
int tlsv1_client_decrypt(struct tlsv1_client *conn,
35
 
                         const u8 *in_data, size_t in_len,
36
 
                         u8 *out_data, size_t out_len);
37
 
int tlsv1_client_get_cipher(struct tlsv1_client *conn, char *buf,
38
 
                            size_t buflen);
39
 
int tlsv1_client_shutdown(struct tlsv1_client *conn);
40
 
int tlsv1_client_resumed(struct tlsv1_client *conn);
41
 
int tlsv1_client_hello_ext(struct tlsv1_client *conn, int ext_type,
42
 
                           const u8 *data, size_t data_len);
43
 
int tlsv1_client_get_keys(struct tlsv1_client *conn, struct tls_keys *keys);
44
 
int tlsv1_client_set_master_key(struct tlsv1_client *conn,
45
 
                                const u8 *key, size_t key_len);
46
 
int tlsv1_client_get_keyblock_size(struct tlsv1_client *conn);
47
 
int tlsv1_client_set_cipher_list(struct tlsv1_client *conn, u8 *ciphers);
48
 
int tlsv1_client_set_ca_cert(struct tlsv1_client *conn, const char *cert,
49
 
                             const u8 *cert_blob, size_t cert_blob_len,
50
 
                             const char *path);
51
 
int tlsv1_client_set_client_cert(struct tlsv1_client *conn, const char *cert,
52
 
                                 const u8 *cert_blob, size_t cert_blob_len);
53
 
int tlsv1_client_set_private_key(struct tlsv1_client *conn,
54
 
                                 const char *private_key,
55
 
                                 const char *private_key_passwd,
56
 
                                 const u8 *private_key_blob,
57
 
                                 size_t private_key_blob_len);
58
 
 
59
 
#endif /* TLSV1_CLIENT_H */