7 * Implementation of the user management
10 * Copyright (C) France Télécom R&D (DR&D/MAPS/NSS)
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.
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.
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
26 * Copyright 2006 The FreeRADIUS server project
30 #ifndef __USERINFO_H__
31 #define __USERINFO_H__
33 #include <freeradius-devel/ident.h>
34 RCSIDH(userinfo_h, "$Id$")
37 #include "eap_psk_ssm.h" // PSK_AK/KDK_SIZE
42 #if defined(__cplusplus)
47 typedef struct s_userinfo {
49 unsigned char AK[PSK_AK_SIZE];
50 unsigned char KDK[PSK_KDK_SIZE];
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)
64 userinfo_t* pskGetUserInfo(char* filename, char* peerID);
66 //int psk_user_free(); //A VOIR
68 #if defined(__cplusplus)
72 #endif /*__USERINFO_H__*/