|
Revision 3491, 1.4 kB
(checked in by martin, 11 months ago)
|
ported charon sources to new doxygen documentation style
Added SVN Id tags to all files
|
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
#include "eap_sim_plugin.h" |
|---|
| 19 |
|
|---|
| 20 |
#include "eap_sim.h" |
|---|
| 21 |
|
|---|
| 22 |
#include <daemon.h> |
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
static void destroy(eap_sim_plugin_t *this) |
|---|
| 28 |
{ |
|---|
| 29 |
charon->eap->remove_method(charon->eap, |
|---|
| 30 |
(eap_constructor_t)eap_sim_create_server); |
|---|
| 31 |
charon->eap->remove_method(charon->eap, |
|---|
| 32 |
(eap_constructor_t)eap_sim_create_peer); |
|---|
| 33 |
free(this); |
|---|
| 34 |
} |
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
plugin_t *plugin_create() |
|---|
| 40 |
{ |
|---|
| 41 |
eap_sim_plugin_t *this = malloc_thing(eap_sim_plugin_t); |
|---|
| 42 |
|
|---|
| 43 |
this->plugin.destroy = (void(*)(plugin_t*))destroy; |
|---|
| 44 |
|
|---|
| 45 |
charon->eap->add_method(charon->eap, EAP_SIM, 0, EAP_SERVER, |
|---|
| 46 |
(eap_constructor_t)eap_sim_create_server); |
|---|
| 47 |
charon->eap->add_method(charon->eap, EAP_SIM, 0, EAP_PEER, |
|---|
| 48 |
(eap_constructor_t)eap_sim_create_peer); |
|---|
| 49 |
|
|---|
| 50 |
return &this->plugin; |
|---|
| 51 |
} |
|---|
| 52 |
|
|---|