ATTRIBUTE EAP-AKA-CK 261 octets
ATTRIBUTE EAP-AKA-IK 262 octets
ATTRIBUTE EAP-AKA-AUTHN 263 octets
+
+#
+# Keys to store for fast-reauthentication
+#
+ATTRIBUTE EAP-SIM-MK 264 octets # Master key
+ATTRIBUTE EAP-AKA-AK 265 octets
VALUE EAP-AKA-Bidding Prefer-AKA-Prime 32768 # D Bit
ATTRIBUTE EAP-AKA-Result-Ind 137 bool
-
-#
-# Internal attributes used by FreeRADIUS
-#
-FLAGS internal
-ATTRIBUTE EAP-AKA-Subtype 256 integer
-
-VALUE EAP-AKA-Subtype AKA-Challenge 1
-VALUE EAP-AKA-Subtype AKA-Authentication-Reject 2
-VALUE EAP-AKA-Subtype AKA-Synchronization-Failure 4
-VALUE EAP-AKA-Subtype AKA-Identity 5
-VALUE EAP-AKA-Subtype AKA-Notification 12
-VALUE EAP-AKA-Subtype AKA-Reauthentication 13
-VALUE EAP-AKA-Subtype AKA-Client-Error 14
-
-ATTRIBUTE EAP-AKA-XRES 260 octets
-ATTRIBUTE EAP-AKA-CK 261 octets
-ATTRIBUTE EAP-AKA-IK 262 octets
-ATTRIBUTE EAP-AKA-AK 263 octets
-
-#
-# Keys to store for fast-reauthentication
-#
-ATTRIBUTE EAP-SIM-MK 264 octets # Master key
ATTRIBUTE EAP-SIM-Key 258 octets
ATTRIBUTE EAP-SIM-Extra 259 octets
+ATTRIBUTE EAP-SIM-MK 264 octets # Master key
+
ATTRIBUTE EAP-SIM-SRES 1222 octets
ATTRIBUTE EAP-SIM-KC 1223 octets
-ATTRIBUTE EAP-SIM-State 1224 integer
\ No newline at end of file
+ATTRIBUTE EAP-SIM-State 1224 integer
return 0;
}
- if (fr_dict_autoload(libfreeradius_sim_dict) < 0) return -1;
+ if (fr_dict_autoload(libfreeradius_sim_dict) < 0) {
+ PERROR("Failed loading SIM dictionary");
+ return -1;
+ }
if (fr_dict_attr_autoload(libfreeradius_sim_dict_attr) < 0) {
+ PERROR("Failed loading SIM attributes");
fr_dict_autofree(libfreeradius_sim_dict);
return -1;
}
#include <freeradius-devel/protocol/eap/sim/rfc4187.h>
#include <freeradius-devel/protocol/eap/aka/dictionary.h>
#include <freeradius-devel/protocol/eap/aka/rfc4187.h>
+#include <freeradius-devel/protocol/eap/aka/freeradius.h>
/*
* Sanity check on dictionaries...
#include <freeradius-devel/server/rad_assert.h>
#include <freeradius-devel/protocol/eap/aka/rfc4187.h>
+#include <freeradius-devel/protocol/eap/aka/freeradius.h>
#ifndef EAP_TLS_MPPE_KEY_LEN
# define EAP_TLS_MPPE_KEY_LEN 32
extern fr_dict_attr_autoload_t rlm_eap_sim_dict_attr[];
fr_dict_attr_autoload_t rlm_eap_sim_dict_attr[] = {
- { .out = &attr_eap_sim_mk, .name = "EAP-SIM-MK", .type = FR_TYPE_OCTETS, .dict = &dict_freeradius },
- { .out = &attr_eap_sim_subtype, .name = "EAP-SIM-Subtype", .type = FR_TYPE_UINT32, .dict = &dict_freeradius },
+ { .out = &attr_eap_sim_mk, .name = "EAP-SIM-MK", .type = FR_TYPE_OCTETS, .dict = &dict_eap_sim },
+ { .out = &attr_eap_sim_subtype, .name = "EAP-SIM-Subtype", .type = FR_TYPE_UINT32, .dict = &dict_eap_sim },
{ .out = &attr_ms_mppe_send_key, .name = "MS-MPPE-Send-Key", .type = FR_TYPE_OCTETS, .dict = &dict_radius },
{ .out = &attr_ms_mppe_recv_key, .name = "MS-MPPE-Recv-Key", .type = FR_TYPE_OCTETS, .dict = &dict_radius },
static int mod_load(void)
{
- if (fr_sim_init() < 0) return -1;
+ if (fr_sim_init() < 0) {
+ ERROR("Failed initializing SIM library");
+ return -1;
+ }
sim_xlat_register();