Removed libcharon dependencies from generic RADIUS protocol support

This commit is contained in:
Martin Willi 2012-02-27 14:49:22 +01:00
parent 99cb353968
commit 990fda9d88
4 changed files with 10 additions and 3 deletions

View File

@ -188,6 +188,10 @@ METHOD(eap_method_t, initiate, status_t,
}
response->destroy(response);
}
else
{
charon->bus->alert(charon->bus, ALERT_RADIUS_NOT_RESPONDING);
}
request->destroy(request);
return status;
}

View File

@ -134,6 +134,10 @@ static bool send_message(private_eap_radius_accounting_t *this,
ack = response->get_code(response) == RMC_ACCOUNTING_RESPONSE;
response->destroy(response);
}
else
{
charon->bus->alert(charon->bus, ALERT_RADIUS_NOT_RESPONDING);
}
client->destroy(client);
}
return ack;

View File

@ -21,7 +21,7 @@
#include <unistd.h>
#include <errno.h>
#include <daemon.h>
#include <debug.h>
#include <utils/host.h>
#include <utils/linked_list.h>
#include <threading/condvar.h>
@ -116,7 +116,6 @@ METHOD(radius_client_t, request, radius_message_t*,
return res;
}
this->server->put_socket(this->server, socket, FALSE);
charon->bus->alert(charon->bus, ALERT_RADIUS_NOT_RESPONDING);
return NULL;
}

View File

@ -15,7 +15,7 @@
#include "radius_message.h"
#include <daemon.h>
#include <debug.h>
#include <crypto/hashers/hasher.h>
typedef struct private_radius_message_t private_radius_message_t;