#include "gw/msg.h"#include "wap/wap_events.h"#include "wap/wtls_pdu.h"#include "wtls_state-decl.h"#include "wtls_machine-decl.h"Include dependency graph for wtls.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | WTLSMachine |
Defines | |
| #define | STATE_NAME(state) state, |
| #define | ROW(state, event, condition, action, next_state) |
| #define | ENUM(name) serv_states name; |
| #define | ADDRTUPLE(name) WAPAddrTuple *name; |
| #define | INTEGER(name) int name; |
| #define | OCTSTR(name) Octstr *name; |
| #define | MACHINE(field) field |
| #define | PDULIST(name) List *name; |
Typedefs | |
| typedef WTLSMachine | WTLSMachine |
Enumerations | |
| enum | serv_states { state, event, condition, action, NULL_STATE, T_Unitdata_Ind, client_random, random_bytes, handshake_data, handle_event, res, CREATING, SEC_Terminate_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, CREATING, SEC_Exception_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, CREATING, SEC_Create_Res, server_random = 0 wtls_pdu_create(Handshake_PDU) server_hello (ServerHello*) gw_malloc(sizeof(ServerHello)) 1 wtls_get_random() octstr_create("") pack_int32(wtls_machine->server_random,0,tempRandom->gmt_unix_time), random_bytes, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, handle_event, event, CREATED, SEC_Exchange_Req, wtls = NULL) wtls_pdu_create(Handshake_PDU) server_key_exchange (ServerKeyExchange*) gw_malloc(sizeof(ServerKeyExchange)) NULL, wtls = NULL) wtls_pdu_create(Handshake_PDU) server_key_exchange (ServerKeyExchange*) gw_malloc(sizeof(ServerKeyExchange)) NULL, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, wtls = NULL) wtls_pdu_create(Handshake_PDU) server_key_exchange (ServerKeyExchange*) gw_malloc(sizeof(ServerKeyExchange)) NULL, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, CREATED, SEC_Commit_Req, CREATED, SEC_Terminate_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, CREATED, SEC_Exception_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, EXCHANGE, T_Unitdata_Ind, pdu_list = = 1, last_received_packet = = 1, EXCHANGE, T_Unitdata_Ind, handshake_data, data, clientKeyXchgPDU = wtls_pdu_unpack(tempPayload,wtls_machine), decryptedData = clientKeyXchgPDU->u.handshake.client_key_exchange->rsa_params->encrypted_secret wtls_decrypt_rsa(encryptedData) wtls_get_rsapublickey(), decryptedData = clientKeyXchgPDU->u.handshake.client_key_exchange->rsa_params->encrypted_secret wtls_decrypt_rsa(encryptedData) wtls_get_rsapublickey(), decryptedData = clientKeyXchgPDU->u.handshake.client_key_exchange->rsa_params->encrypted_secret wtls_decrypt_rsa(encryptedData) wtls_get_rsapublickey(), rsa_exponent, decryptedData = clientKeyXchgPDU->u.handshake.client_key_exchange->rsa_params->encrypted_secret wtls_decrypt_rsa(encryptedData) wtls_get_rsapublickey(), decryptedData = clientKeyXchgPDU->u.handshake.client_key_exchange->rsa_params->encrypted_secret wtls_decrypt_rsa(encryptedData) wtls_get_rsapublickey(), decryptedData = clientKeyXchgPDU->u.handshake.client_key_exchange->rsa_params->encrypted_secret wtls_decrypt_rsa(encryptedData) wtls_get_rsapublickey(), rsa_modulus, changeCipherSpec_incoming_PDU, wtls = NULL) wtls_pdu_create(Handshake_PDU) server_key_exchange (ServerKeyExchange*) gw_malloc(sizeof(ServerKeyExchange)) NULL, finished_incoming_PDU, verify_data, handshake_data, data, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, server_seq_num = 0, EXCHANGE, T_Unitdata_Ind, pdu_list = = 1, EXCHANGE, T_Unitdata_Ind, pdu_list = = 1, EXCHANGE, SEC_Terminate_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, EXCHANGE, SEC_Exception_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, COMMIT, T_Unitdata_Ind, pdu_list = = 1, last_received_packet = = 1, COMMIT, T_Unitdata_Ind, pdu_list = = 1, last_received_packet = = 1, COMMIT, T_Unitdata_Ind, pdu_list = = 1, COMMIT, T_Unitdata_Ind, pdu_list = = 1, COMMIT, T_Unitdata_Ind, pdu_list = = 1, COMMIT, T_Unitdata_Ind, pdu_list = = 1, COMMIT, SEC_Terminate_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, COMMIT, SEC_Exception_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, OPENING, SEC_Create_Request_Req, OPENING, SEC_Unitdata_Req, OPENING, T_Unitdata_Ind, pdu_list = = 1, wtls = NULL) wtls_pdu_create(Handshake_PDU) server_key_exchange (ServerKeyExchange*) gw_malloc(sizeof(ServerKeyExchange)) NULL, d, data, ApplicationPDU = wtls_pdu_unpack(tempPayload, wtls_machine), OPENING, T_Unitdata_Ind, pdu_list = = 1, last_received_packet = = 1, OPENING, T_Unitdata_Ind, pdu_list = = 1, OPENING, T_Unitdata_Ind, pdu_list = = 1, OPENING, SEC_Terminate_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, OPENING, SEC_Exception_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, OPEN, SEC_Create_Request_Req, OPEN, SEC_Unitdata_Req, OPEN, T_Unitdata_Ind, pdu_list = = 1, OPEN, T_Unitdata_Ind, pdu_list = = 1, OPEN, T_Unitdata_Ind, pdu_list = = 1, OPEN, T_Unitdata_Ind, pdu_list = = 1, OPEN, T_Unitdata_Ind, pdu_list = = 1, OPEN, T_Unitdata_Ind, pdu_list = = 1, OPEN, SEC_Terminate_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, OPEN, SEC_Exception_Req, alert_level, alert_desc, wtls_machine = tempRandom octstr_create("") event->u.SEC_Create_Res.client_key_id (CipherSuite*) gw_malloc(sizeof(CipherSuite)) event->u.SEC_Create_Res.bulk_cipher_algo event->u.SEC_Create_Res.mac_algo null_comp event->u.SEC_Create_Res.snmode event->u.SEC_Create_Res.krefresh, serv_states_count } |
Functions | |
| void | wtls_init (void) |
| void | wtls_shutdown (void) |
| void | wtls_dispatch_event (WAPEvent *event) |
| WAPEvent * | wtls_unpack_wdp_datagram (Msg *msg) |
| int | wtls_get_address_tuple (long mid, WAPAddrTuple **tuple) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 78 of file wtls.h. 00078 {
00079 #define STATE_NAME(state) state,
00080 #define ROW(state, event, condition, action, next_state)
00081 #include "wtls_state-decl.h"
00082 serv_states_count
00083 };
|
|
|
Referenced by main(). |
|
||||||||||||
|
|
|
|
Referenced by main(). |
|
|
|
|
|
Referenced by main(). |