Pull fix from branch_1_1, so proxied EAP replies work
[freeradius.git] / src / modules / rlm_eap / types / rlm_eap_psk / userinfo.h
1 /* $Id$ */
2
3
4 /*
5  * userinfo.h
6  *
7  * Implementation of the user management
8  *
9  * 
10  * Copyright (C) France Télécom R&D (DR&D/MAPS/NSS)
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version 2
15  * of the License, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  * 
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
25  *
26  * Copyright 2006 The FreeRADIUS server project
27  *
28  */
29
30 #ifndef __USERINFO_H__
31 #define __USERINFO_H__
32
33 #include <freeradius-devel/ident.h>
34 RCSIDH(userinfo_h, "$Id$")
35
36
37 #include "eap_psk_ssm.h" // PSK_AK/KDK_SIZE
38
39
40
41
42 #if defined(__cplusplus)
43 extern "C"
44 {
45 #endif
46
47 typedef struct s_userinfo {
48     //    char*          name;
49     unsigned char  AK[PSK_AK_SIZE];
50     unsigned char  KDK[PSK_KDK_SIZE];
51     //    s_userinfo*  next;
52 } userinfo_t;
53
54
55
56
57 #define   ASCII_PER_BYTE     2
58 #define   PSK_AK_STRLEN      (PSK_AK_SIZE*ASCII_PER_BYTE)
59 #define   PSK_KDK_STRLEN     (PSK_KDK_SIZE*ASCII_PER_BYTE)
60
61
62
63
64 userinfo_t*  pskGetUserInfo(char*  filename, char*  peerID);
65
66 //int        psk_user_free(); //A VOIR
67
68 #if defined(__cplusplus)
69 }
70 #endif
71
72 #endif /*__USERINFO_H__*/