diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-03-08 22:37:09 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2012-03-13 16:27:17 +0100 |
commit | cd9bde335ce883082c8fbc1703e9d0e6d9ebebe7 (patch) | |
tree | 03f2394648b313d42197c31e4482bbfd91ff1cc8 /src/libcharon/plugins/tnc_pdp/tnc_pdp.c | |
parent | b3ec6521924b137d7d8a7f67e07907662a112e81 (diff) | |
download | strongswan-cd9bde335ce883082c8fbc1703e9d0e6d9ebebe7.tar.bz2 strongswan-cd9bde335ce883082c8fbc1703e9d0e6d9ebebe7.tar.xz |
added EAP_SUCCESS/FAILURE message to RADIUS Accept/Reject
Diffstat (limited to 'src/libcharon/plugins/tnc_pdp/tnc_pdp.c')
-rw-r--r-- | src/libcharon/plugins/tnc_pdp/tnc_pdp.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libcharon/plugins/tnc_pdp/tnc_pdp.c b/src/libcharon/plugins/tnc_pdp/tnc_pdp.c index 2e330e7c2..6b0021dc2 100644 --- a/src/libcharon/plugins/tnc_pdp/tnc_pdp.c +++ b/src/libcharon/plugins/tnc_pdp/tnc_pdp.c @@ -250,17 +250,22 @@ static void process_eap(private_tnc_pdp_t *this, radius_message_t *request, break; case SUCCESS: code = RMC_ACCESS_ACCEPT; + DESTROY_IF(out); + out = eap_payload_create_code(EAP_SUCCESS, + in->get_identifier(in)); break; case FAILED: default: code = RMC_ACCESS_REJECT; + DESTROY_IF(out); + out = eap_payload_create_code(EAP_FAILURE, + in->get_identifier(in)); } } send_response(this, request, code, out, source); - in->destroy(in); - DESTROY_IF(out); + out->destroy(out); } } |