do {
pkt.identifier = random();
} while (!pkt.identifier);
+ DBG2(DBG_IKE, "sending TLS start packet");
*out = eap_payload_create_data(chunk_from_thing(pkt));
return NEED_MORE;
.type = EAP_TLS,
};
htoun16(&pkt.length, sizeof(pkt));
+ DBG2(DBG_IKE, "sending TLS acknowledgement packet");
return eap_payload_create_data(chunk_from_thing(pkt));
}
pkt_len += EAP_TLS_FRAGMENT_LEN;
memcpy(start, this->output.ptr + this->outpos, EAP_TLS_FRAGMENT_LEN);
this->outpos += EAP_TLS_FRAGMENT_LEN;
+ DBG2(DBG_IKE, "sending TLS packet fragment");
}
else
{
this->output.len - this->outpos);
chunk_free(&this->output);
this->outpos = 0;
+ DBG2(DBG_IKE, "sending TLS packet");
}
}
htoun16(&pkt->length, pkt_len);
do {
pkt.identifier = random();
} while (!pkt.identifier);
+ DBG2(DBG_IKE, "sending TLS start packet");
*out = eap_payload_create_data(chunk_from_thing(pkt));
return NEED_MORE;
.type = EAP_TTLS,
};
htoun16(&pkt.length, sizeof(pkt));
+ DBG2(DBG_IKE, "sending TLS acknowledgement packet");
return eap_payload_create_data(chunk_from_thing(pkt));
}
pkt_len += EAP_TTLS_FRAGMENT_LEN;
memcpy(start, this->output.ptr + this->outpos, EAP_TTLS_FRAGMENT_LEN);
this->outpos += EAP_TTLS_FRAGMENT_LEN;
+ DBG2(DBG_IKE, "sending TLS packet fragment");
}
else
{
this->output.len - this->outpos);
chunk_free(&this->output);
this->outpos = 0;
+ DBG2(DBG_IKE, "sending TLS packet or last fragment");
}
}
htoun16(&pkt->length, pkt_len);