merged multi-auth branch back into trunk
This commit is contained in:
@@ -52,13 +52,13 @@ static bool get_triplet(private_eap_sim_file_card_t *this,
|
||||
identification_t *id;
|
||||
char *c_rand, *c_sres, *c_kc;
|
||||
|
||||
|
||||
DBG1(DBG_CFG, "looking for rand: %b", rand, RAND_LEN);
|
||||
DBG2(DBG_CFG, "looking for rand: %b", rand, RAND_LEN);
|
||||
|
||||
enumerator = this->triplets->create_enumerator(this->triplets);
|
||||
while (enumerator->enumerate(enumerator, &id, &c_rand, &c_sres, &c_kc))
|
||||
{
|
||||
DBG1(DBG_CFG, "found triplet: %b %b %b", c_rand, RAND_LEN, c_sres, SRES_LEN, c_kc, KC_LEN);
|
||||
DBG2(DBG_CFG, "found triplet: rand %b\nsres %b\n kc %b",
|
||||
c_rand, RAND_LEN, c_sres, SRES_LEN, c_kc, KC_LEN);
|
||||
if (memeq(c_rand, rand, RAND_LEN))
|
||||
{
|
||||
memcpy(sres, c_sres, SRES_LEN);
|
||||
|
||||
@@ -196,8 +196,7 @@ static void read_triplets(private_eap_sim_file_triplets_t *this, char *path)
|
||||
switch (i++)
|
||||
{
|
||||
case 0: /* IMSI */
|
||||
triplet->imsi = identification_create_from_encoding(ID_EAP,
|
||||
chunk_create(token, strlen(token)));
|
||||
triplet->imsi = identification_create_from_string(token);
|
||||
continue;
|
||||
case 1: /* rand */
|
||||
parse_token(triplet->rand, token, RAND_LEN);
|
||||
@@ -221,7 +220,7 @@ static void read_triplets(private_eap_sim_file_triplets_t *this, char *path)
|
||||
continue;
|
||||
}
|
||||
|
||||
DBG1(DBG_CFG, "triplet: imsi %D\nrand %b\nsres %b\nkc %b",
|
||||
DBG2(DBG_CFG, "triplet: imsi %D\nrand %b\nsres %b\nkc %b",
|
||||
triplet->imsi, triplet->rand, RAND_LEN,
|
||||
triplet->sres, SRES_LEN, triplet->kc, KC_LEN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user