Index: wap/wtls.c
===================================================================
--- wap/wtls.c	(revision 4843)
+++ wap/wtls.c	(working copy)
@@ -144,11 +144,14 @@
  */
 static WTLSMachine *wtls_machine_find(WAPAddrTuple * tuple, long mid);
 
+/* Function prototypes */
 static void main_thread(void *);
 static WTLSMachine *find_wtls_machine_using_mid(long mid);
 static void add_wtls_address(Msg * msg, WTLSMachine * wtls_machine);
 static void add_pdu(WTLSMachine * wtls_machine, wtls_PDU * pduToAdd);
 static void send_queuedpdus(WTLSMachine * wtls_machine);
+void send_alert(WAPEvent * event, WTLSMachine * wtls_machine);
+char *stateName(int s);
 
 /* The match* functions are used for searches through lists */
 static int match_handshake_type(void *item, void *pattern);
@@ -156,6 +159,7 @@
 
 extern void write_to_bearerbox(Msg * pmsg);
 extern Octstr *wtls_get_certificate(void);
+
 /*static WAPEvent *create_tr_invoke_ind(WTPRespMachine *sm, Octstr *user_data);
 static WAPEvent *create_tr_abort_ind(WTPRespMachine *sm, long abort_reason);
 static WAPEvent *create_tr_result_cnf(WTPRespMachine *sm); */
Index: wap/wtls_pdu.c
===================================================================
--- wap/wtls_pdu.c	(revision 4843)
+++ wap/wtls_pdu.c	(working copy)
@@ -76,7 +76,9 @@
 PublicKeyAlgorithm public_key_algo;
 SignatureAlgorithm signature_algo;
 
+/* Function prototypes */
 wtls_Payload *wtls_payload_unpack_from_offset(Octstr * data, int *offset);
+int wtls_payload_guess_length(Octstr * data);
 
 wtls_PDU *wtls_pdu_create(int type)
 {
Index: wap/wtls_pdusupport.c
===================================================================
--- wap/wtls_pdusupport.c	(revision 4843)
+++ wap/wtls_pdusupport.c	(working copy)
@@ -71,10 +71,22 @@
 #include "wtls_pdusupport.h"
 #include "wtls_statesupport.h"
 
-// Change this later !!!!
 extern PublicKeyAlgorithm public_key_algo;
 extern SignatureAlgorithm signature_algo;
 
+/* Function prototypes */
+
+void destroy_octstr(Octstr * data);
+void destroy_octstr16(Octstr * data);
+void destroy_octstr_fixed(Octstr * data);
+void destroy_dhparams(DHParameters * dhparams);
+void destroy_ecparams(ECParameters * ecparams);
+void destroy_public_key(PublicKey * key);
+void destroy_rsa_secret(RSASecret * secret);
+void destroy_key_exchange_id(KeyExchangeId * keyexid);
+void destroy_signature(Signature * sig);
+void dump_void16(char *dbg, int level, int i);
+
 /*****************************************************************
  * PACK functions
  */
Index: wap/wtls-secmgr.c
===================================================================
--- wap/wtls-secmgr.c	(revision 4843)
+++ wap/wtls-secmgr.c	(working copy)
@@ -104,6 +104,15 @@
 
 static void main_thread(void *);
 
+/*
+ * Public functions.
+ */
+
+void wtls_secmgr_init(void);
+void wtls_secmgr_shutdown(void);
+void wtls_secmgr_dispatch(WAPEvent *event);
+long wtls_secmgr_get_load(void);
+
 /***********************************************************************
  * The public interface to the application layer.
  */
Index: wap/wtls_statesupport.c
===================================================================
--- wap/wtls_statesupport.c	(revision 4843)
+++ wap/wtls_statesupport.c	(working copy)
@@ -131,10 +131,19 @@
            *md);
 extern unsigned char *stateName(int state);
 
+/*
+ * Function Prototypes.
+ */
+
 Octstr *wtls_hmac_hash(Octstr * key, Octstr * data, int algo);
 Octstr *wtls_hash(Octstr * inputData, WTLSMachine * wtls_machine);
 Octstr *wtls_rc5(Octstr * data, WTLSMachine * wtls_machine, int crypt);
 Octstr *wtls_des(Octstr * data, WTLSMachine * wtls_machine, int crypt);
+Octstr *wtls_P_hash(Octstr * secret, Octstr * seed, int byteLength,
+          WTLSMachine * wtls_machine);
+Octstr *wtls_get_certificate(void);
+int isSupportedKeyEx(int keyExId);
+void add_all_handshake_data(WTLSMachine * wtls_machine, List * pdu_list);
 
 /* Add here the supported KeyExchangeSuites 
    used by wtls_choose_clientkeyid */
