~ubuntu-branches/ubuntu/trusty/wpa/trusty

« back to all changes in this revision

Viewing changes to src/radius/radius_das.h

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2014-03-04 16:13:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20140304161324-md40gw8imcectbuu
Tags: 2.1-0ubuntu1
* New upstream release (LP: #1099755)
* debian/get-orig-source: update for new git repository for the current
  hostap/wpasupplicant versions.
* Dropped patches due to being applied upstream and included in the current
  source tarball:
  - debian/patches/11_wpa_gui_ftbfs_gcc_4_7.patch
  - debian/patches/13_human_readable_signal.patch
  - debian/patches/git_deinit_p2p_context_on_mgmt_remove_ff1f9c8.patch
  - debian/patches/libnl3-includes.patch
* debian/patches/git_accept_client_cert_from_server.patch: revert the commit:
  "OpenSSL: Do not accept SSL Client certificate for server", which breaks
  many AAA servers that include both client and server EKUs. Cherry-picked
  from hostap git commit b62d5b5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * RADIUS Dynamic Authorization Server (DAS)
 
3
 * Copyright (c) 2012, Jouni Malinen <j@w1.fi>
 
4
 *
 
5
 * This software may be distributed under the terms of the BSD license.
 
6
 * See README for more details.
 
7
 */
 
8
 
 
9
#ifndef RADIUS_DAS_H
 
10
#define RADIUS_DAS_H
 
11
 
 
12
struct radius_das_data;
 
13
 
 
14
enum radius_das_res {
 
15
        RADIUS_DAS_SUCCESS,
 
16
        RADIUS_DAS_NAS_MISMATCH,
 
17
        RADIUS_DAS_SESSION_NOT_FOUND
 
18
};
 
19
 
 
20
struct radius_das_attrs {
 
21
        const u8 *sta_addr;
 
22
        const u8 *user_name;
 
23
        size_t user_name_len;
 
24
        const u8 *acct_session_id;
 
25
        size_t acct_session_id_len;
 
26
        const u8 *cui;
 
27
        size_t cui_len;
 
28
};
 
29
 
 
30
struct radius_das_conf {
 
31
        int port;
 
32
        const u8 *shared_secret;
 
33
        size_t shared_secret_len;
 
34
        const struct hostapd_ip_addr *client_addr;
 
35
        unsigned int time_window;
 
36
        int require_event_timestamp;
 
37
        void *ctx;
 
38
        enum radius_das_res (*disconnect)(void *ctx,
 
39
                                          struct radius_das_attrs *attr);
 
40
};
 
41
 
 
42
struct radius_das_data *
 
43
radius_das_init(struct radius_das_conf *conf);
 
44
 
 
45
void radius_das_deinit(struct radius_das_data *data);
 
46
 
 
47
#endif /* RADIUS_DAS_H */