store EAP identifier on peer side

This commit is contained in:
Andreas Steffen
2011-04-05 15:45:51 +02:00
parent 1b80fdd9e0
commit 07313dbe38
+2 -1
View File
@@ -174,10 +174,11 @@ METHOD(eap_method_t, process_peer, status_t,
/* TODO: According to the draft we should "SASLprep" password, RFC4013. */
this->identifier = in->get_identifier(in);
res = alloca(sizeof(eap_gtc_header_t) + len);
res->length = htons(sizeof(eap_gtc_header_t) + len);
res->code = EAP_RESPONSE;
res->identifier = in->get_identifier(in);
res->identifier = this->identifier;
res->type = EAP_GTC;
memcpy(res->data, key.ptr, len);