mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-07 00:00:13 -05:00
Removed libcharon dependencies from generic RADIUS protocol support
This commit is contained in:
parent
99cb353968
commit
990fda9d88
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user