79 #if (HAVE_WTLS_OPENSSL) 99 static List *secmgr_queue = NULL;
111 void wtls_secmgr_init(
void);
112 void wtls_secmgr_shutdown(
void);
113 void wtls_secmgr_dispatch(
WAPEvent *event);
114 long wtls_secmgr_get_load(
void);
120 void wtls_secmgr_init(
void) {
129 void wtls_secmgr_shutdown(
void) {
140 void wtls_secmgr_dispatch(
WAPEvent *event) {
146 long wtls_secmgr_get_load(
void) {
168 res->
u.SEC_Create_Res.addr_tuple =
171 debug(
"wtls_secmgr : main_thread", 0,
"Dispatching SEC_Create_Res event");
174 req->
u.SEC_Exchange_Req.addr_tuple =
177 debug(
"wtls_secmgr : main_thread", 0,
"Dispatching SEC_Exchange_Req event");
183 term->
u.SEC_Terminate_Req.addr_tuple =
185 term->
u.SEC_Terminate_Req.alert_desc = 0;
186 term->
u.SEC_Terminate_Req.alert_level = 3;
189 panic(0,
"WTLS-secmgr: Can't handle %s event",
EXCHANGE SEC_Terminate_Req
gw_assert(wtls_machine->packet_to_send !=NULL)
static void main_thread(void *)
void gwlist_produce(List *list, void *item)
long gwlist_len(List *list)
void wtls_dispatch_event(WAPEvent *event)
void gwthread_join_every(gwthread_func_t *func)
WAPAddrTuple * wap_addr_tuple_duplicate(WAPAddrTuple *tuple)
void gwlist_remove_producer(List *list)
void wap_event_destroy_item(void *event)
static enum @29 run_status
const char * wap_event_name(WAPEventName type)
#define wap_event_create(type)
#define gwthread_create(func, arg)
void * gwlist_consume(List *list)
CREATING CREATING SEC_Exchange_Req
void debug(const char *place, int err, const char *fmt,...)
void gwlist_add_producer(List *list)
void wap_event_destroy(WAPEvent *event)
void gwlist_destroy(List *list, gwlist_item_destructor_t *destructor)