Kannel: Open Source WAP and SMS gateway  svn-r5336
wtls_pdusupport.h File Reference

Go to the source code of this file.

Functions

int pack_int16 (Octstr *data, long charpos, int i)
 
int pack_int32 (Octstr *data, long charpos, long i)
 
int pack_octstr (Octstr *data, long charpos, Octstr *opaque)
 
int pack_octstr16 (Octstr *data, long charpos, Octstr *opaque)
 
int pack_octstr_fixed (Octstr *data, long charpos, Octstr *opaque)
 
int pack_random (Octstr *data, long charpos, Random *random)
 
int pack_dhparams (Octstr *data, long charpos, DHParameters *dhparams)
 
int pack_ecparams (Octstr *data, long charpos, ECParameters *ecparams)
 
int pack_param_spec (Octstr *data, long charpos, ParameterSpecifier *pspec)
 
int pack_public_key (Octstr *data, long charpos, PublicKey *key, PublicKeyType key_type)
 
int pack_rsa_pubkey (Octstr *data, long charpos, RSAPublicKey *key)
 
int pack_dh_pubkey (Octstr *data, long charpos, DHPublicKey *key)
 
int pack_ec_pubkey (Octstr *data, long charpos, ECPublicKey *key)
 
int pack_rsa_secret (Octstr *data, long charpos, RSASecret *secret)
 
int pack_rsa_encrypted_secret (Octstr *data, long charpos, RSAEncryptedSecret *secret)
 
int pack_key_exchange_id (Octstr *data, long charpos, KeyExchangeId *keyexid)
 
int pack_array (Octstr *data, long charpos, List *array)
 
int pack_key_list (Octstr *data, long charpos, List *key_list)
 
int pack_ciphersuite_list (Octstr *data, long charpos, List *ciphersuites)
 
int pack_compression_method_list (Octstr *data, long charpos, List *compmethod_list)
 
int pack_identifier (Octstr *data, long charpos, Identifier *ident)
 
int pack_signature (Octstr *data, long charpos, Signature *sig)
 
int pack_wtls_certificate (Octstr *data, long charpos, WTLSCertificate *cert)
 
int unpack_int16 (Octstr *data, long *charpos)
 
long unpack_int32 (Octstr *data, long *charpos)
 
Octstr * unpack_octstr (Octstr *data, long *charpos)
 
Octstr * unpack_octstr16 (Octstr *data, long *charpos)
 
Octstr * unpack_octstr_fixed (Octstr *data, long *charpos, long length)
 
Random * unpack_random (Octstr *data, long *charpos)
 
DHParameters * unpack_dhparams (Octstr *data, long *charpos)
 
ECParameters * unpack_ecparams (Octstr *data, long *charpos)
 
ParameterSpecifier * unpack_param_spec (Octstr *data, long *charpos)
 
PublicKey * unpack_public_key (Octstr *data, long *charpos, PublicKeyType key_type)
 
RSAPublicKey * unpack_rsa_pubkey (Octstr *data, long *charpos)
 
DHPublicKey * unpack_dh_pubkey (Octstr *data, long *charpos)
 
ECPublicKey * unpack_ec_pubkey (Octstr *data, long *charpos)
 
RSASecret * unpack_rsa_secret (Octstr *data, long *charpos)
 
RSAEncryptedSecret * unpack_rsa_encrypted_secret (Octstr *data, long *charpos)
 
KeyExchangeId * unpack_key_exchange_id (Octstr *data, long *charpos)
 
List * unpack_array (Octstr *data, long *charpos)
 
List * unpack_ciphersuite_list (Octstr *data, long *charpos)
 
List * unpack_key_list (Octstr *data, long *charpos)
 
List * unpack_compression_method_list (Octstr *data, long *charpos)
 
Identifier * unpack_identifier (Octstr *data, long *charpos)
 
Signature * unpack_signature (Octstr *data, long *charpos)
 
WTLSCertificate * unpack_wtls_certificate (Octstr *data, long *charpos)
 
void dump_int16 (char *dbg, int level, int i)
 
void dump_int32 (char *dbg, int level, long i)
 
void dump_octstr (char *dbg, int level, Octstr *opaque)
 
void dump_octstr16 (char *dbg, int level, Octstr *opaque)
 
void dump_octstr_fixed (char *dbg, int level, Octstr *opaque)
 
void dump_random (char *dbg, int level, Random *random)
 
void dump_dhparams (char *dbg, int level, DHParameters *dhparams)
 
void dump_ecparams (char *dbg, int level, ECParameters *ecparams)
 
void dump_param_spec (char *dbg, int level, ParameterSpecifier *pspec)
 
void dump_public_key (char *dbg, int level, PublicKey *key, PublicKeyType key_type)
 
void dump_rsa_pubkey (char *dbg, int level, RSAPublicKey *key)
 
void dump_dh_pubkey (char *dbg, int level, DHPublicKey *key)
 
void dump_ec_pubkey (char *dbg, int level, ECPublicKey *key)
 
void dump_rsa_secret (char *dbg, int level, RSASecret *secret)
 
void dump_rsa_encrypted_secret (char *dbg, int level, RSAEncryptedSecret *secret)
 
void dump_key_exchange_id (char *dbg, int level, KeyExchangeId *keyexid)
 
void dump_array (char *dbg, int level, List *array)
 
void dump_key_list (char *dbg, int level, List *key_list)
 
void dump_ciphersuite_list (char *dbg, int level, List *ciphersuites)
 
void dump_compression_method_list (char *dbg, int level, List *compmethod_list)
 
void dump_identifier (char *dbg, int level, Identifier *ident)
 
void dump_signature (char *dbg, int level, Signature *sig)
 
void dump_wtls_certificate (char *dbg, int level, WTLSCertificate *cert)
 
void destroy_rsa_pubkey (RSAPublicKey *key)
 
void destroy_array (List *array)
 
void destroy_identifier (Identifier *ident)
 
void destroy_random (Random *random)
 
void destroy_key_list (List *key_list)
 
void destroy_ciphersuite_list (List *ciphersuites)
 
void destroy_compression_method_list (List *compmethod_list)
 
void destroy_wtls_certificate (WTLSCertificate *cert)
 
void destroy_param_spec (ParameterSpecifier *pspec)
 
void destroy_dh_pubkey (DHPublicKey *key)
 
void destroy_ec_pubkey (ECPublicKey *key)
 
void destroy_rsa_encrypted_secret (RSAEncryptedSecret *secret)
 

Function Documentation

◆ destroy_array()

void destroy_array ( List *  array)

◆ destroy_ciphersuite_list()

void destroy_ciphersuite_list ( List *  ciphersuites)

◆ destroy_compression_method_list()

void destroy_compression_method_list ( List *  compmethod_list)

◆ destroy_dh_pubkey()

void destroy_dh_pubkey ( DHPublicKey *  key)

◆ destroy_ec_pubkey()

void destroy_ec_pubkey ( ECPublicKey *  key)

◆ destroy_identifier()

void destroy_identifier ( Identifier *  ident)

◆ destroy_key_list()

void destroy_key_list ( List *  key_list)

◆ destroy_param_spec()

void destroy_param_spec ( ParameterSpecifier *  pspec)

◆ destroy_random()

void destroy_random ( Random *  random)

◆ destroy_rsa_encrypted_secret()

void destroy_rsa_encrypted_secret ( RSAEncryptedSecret *  secret)

◆ destroy_rsa_pubkey()

void destroy_rsa_pubkey ( RSAPublicKey *  key)

◆ destroy_wtls_certificate()

void destroy_wtls_certificate ( WTLSCertificate *  cert)

◆ dump_array()

void dump_array ( char *  dbg,
int  level,
List *  array 
)

◆ dump_ciphersuite_list()

void dump_ciphersuite_list ( char *  dbg,
int  level,
List *  ciphersuites 
)

◆ dump_compression_method_list()

void dump_compression_method_list ( char *  dbg,
int  level,
List *  compmethod_list 
)

◆ dump_dh_pubkey()

void dump_dh_pubkey ( char *  dbg,
int  level,
DHPublicKey *  key 
)

◆ dump_dhparams()

void dump_dhparams ( char *  dbg,
int  level,
DHParameters *  dhparams 
)

◆ dump_ec_pubkey()

void dump_ec_pubkey ( char *  dbg,
int  level,
ECPublicKey *  key 
)

◆ dump_ecparams()

void dump_ecparams ( char *  dbg,
int  level,
ECParameters *  ecparams 
)

◆ dump_identifier()

void dump_identifier ( char *  dbg,
int  level,
Identifier *  ident 
)

◆ dump_int16()

void dump_int16 ( char *  dbg,
int  level,
int  i 
)

◆ dump_int32()

void dump_int32 ( char *  dbg,
int  level,
long  i 
)

◆ dump_key_exchange_id()

void dump_key_exchange_id ( char *  dbg,
int  level,
KeyExchangeId *  keyexid 
)

◆ dump_key_list()

void dump_key_list ( char *  dbg,
int  level,
List *  key_list 
)

◆ dump_octstr()

void dump_octstr ( char *  dbg,
int  level,
Octstr *  opaque 
)

◆ dump_octstr16()

void dump_octstr16 ( char *  dbg,
int  level,
Octstr *  opaque 
)

◆ dump_octstr_fixed()

void dump_octstr_fixed ( char *  dbg,
int  level,
Octstr *  opaque 
)

◆ dump_param_spec()

void dump_param_spec ( char *  dbg,
int  level,
ParameterSpecifier *  pspec 
)

◆ dump_public_key()

void dump_public_key ( char *  dbg,
int  level,
PublicKey *  key,
PublicKeyType  key_type 
)

◆ dump_random()

void dump_random ( char *  dbg,
int  level,
Random *  random 
)

◆ dump_rsa_encrypted_secret()

void dump_rsa_encrypted_secret ( char *  dbg,
int  level,
RSAEncryptedSecret *  secret 
)

◆ dump_rsa_pubkey()

void dump_rsa_pubkey ( char *  dbg,
int  level,
RSAPublicKey *  key 
)

◆ dump_rsa_secret()

void dump_rsa_secret ( char *  dbg,
int  level,
RSASecret *  secret 
)

◆ dump_signature()

void dump_signature ( char *  dbg,
int  level,
Signature *  sig 
)

◆ dump_wtls_certificate()

void dump_wtls_certificate ( char *  dbg,
int  level,
WTLSCertificate *  cert 
)

◆ pack_array()

int pack_array ( Octstr *  data,
long  charpos,
List *  array 
)

◆ pack_ciphersuite_list()

int pack_ciphersuite_list ( Octstr *  data,
long  charpos,
List *  ciphersuites 
)

◆ pack_compression_method_list()

int pack_compression_method_list ( Octstr *  data,
long  charpos,
List *  compmethod_list 
)

◆ pack_dh_pubkey()

int pack_dh_pubkey ( Octstr *  data,
long  charpos,
DHPublicKey *  key 
)

◆ pack_dhparams()

int pack_dhparams ( Octstr *  data,
long  charpos,
DHParameters *  dhparams 
)

◆ pack_ec_pubkey()

int pack_ec_pubkey ( Octstr *  data,
long  charpos,
ECPublicKey *  key 
)

◆ pack_ecparams()

int pack_ecparams ( Octstr *  data,
long  charpos,
ECParameters *  ecparams 
)

◆ pack_identifier()

int pack_identifier ( Octstr *  data,
long  charpos,
Identifier *  ident 
)

◆ pack_int16()

int pack_int16 ( Octstr *  data,
long  charpos,
int  i 
)

◆ pack_int32()

int pack_int32 ( Octstr *  data,
long  charpos,
long  i 
)

◆ pack_key_exchange_id()

int pack_key_exchange_id ( Octstr *  data,
long  charpos,
KeyExchangeId *  keyexid 
)

◆ pack_key_list()

int pack_key_list ( Octstr *  data,
long  charpos,
List *  key_list 
)

◆ pack_octstr()

int pack_octstr ( Octstr *  data,
long  charpos,
Octstr *  opaque 
)

◆ pack_octstr16()

int pack_octstr16 ( Octstr *  data,
long  charpos,
Octstr *  opaque 
)

◆ pack_octstr_fixed()

int pack_octstr_fixed ( Octstr *  data,
long  charpos,
Octstr *  opaque 
)

◆ pack_param_spec()

int pack_param_spec ( Octstr *  data,
long  charpos,
ParameterSpecifier *  pspec 
)

◆ pack_public_key()

int pack_public_key ( Octstr *  data,
long  charpos,
PublicKey *  key,
PublicKeyType  key_type 
)

◆ pack_random()

int pack_random ( Octstr *  data,
long  charpos,
Random *  random 
)

◆ pack_rsa_encrypted_secret()

int pack_rsa_encrypted_secret ( Octstr *  data,
long  charpos,
RSAEncryptedSecret *  secret 
)

◆ pack_rsa_pubkey()

int pack_rsa_pubkey ( Octstr *  data,
long  charpos,
RSAPublicKey *  key 
)

◆ pack_rsa_secret()

int pack_rsa_secret ( Octstr *  data,
long  charpos,
RSASecret *  secret 
)

◆ pack_signature()

int pack_signature ( Octstr *  data,
long  charpos,
Signature *  sig 
)

◆ pack_wtls_certificate()

int pack_wtls_certificate ( Octstr *  data,
long  charpos,
WTLSCertificate *  cert 
)

◆ unpack_array()

List* unpack_array ( Octstr *  data,
long *  charpos 
)

◆ unpack_ciphersuite_list()

List* unpack_ciphersuite_list ( Octstr *  data,
long *  charpos 
)

◆ unpack_compression_method_list()

List* unpack_compression_method_list ( Octstr *  data,
long *  charpos 
)

◆ unpack_dh_pubkey()

DHPublicKey* unpack_dh_pubkey ( Octstr *  data,
long *  charpos 
)

◆ unpack_dhparams()

DHParameters* unpack_dhparams ( Octstr *  data,
long *  charpos 
)

◆ unpack_ec_pubkey()

ECPublicKey* unpack_ec_pubkey ( Octstr *  data,
long *  charpos 
)

◆ unpack_ecparams()

ECParameters* unpack_ecparams ( Octstr *  data,
long *  charpos 
)

◆ unpack_identifier()

Identifier* unpack_identifier ( Octstr *  data,
long *  charpos 
)

◆ unpack_int16()

int unpack_int16 ( Octstr *  data,
long *  charpos 
)

◆ unpack_int32()

long unpack_int32 ( Octstr *  data,
long *  charpos 
)

◆ unpack_key_exchange_id()

KeyExchangeId* unpack_key_exchange_id ( Octstr *  data,
long *  charpos 
)

◆ unpack_key_list()

List* unpack_key_list ( Octstr *  data,
long *  charpos 
)

◆ unpack_octstr()

Octstr* unpack_octstr ( Octstr *  data,
long *  charpos 
)

◆ unpack_octstr16()

Octstr* unpack_octstr16 ( Octstr *  data,
long *  charpos 
)

◆ unpack_octstr_fixed()

Octstr* unpack_octstr_fixed ( Octstr *  data,
long *  charpos,
long  length 
)

◆ unpack_param_spec()

ParameterSpecifier* unpack_param_spec ( Octstr *  data,
long *  charpos 
)

◆ unpack_public_key()

PublicKey* unpack_public_key ( Octstr *  data,
long *  charpos,
PublicKeyType  key_type 
)

◆ unpack_random()

Random* unpack_random ( Octstr *  data,
long *  charpos 
)

◆ unpack_rsa_encrypted_secret()

RSAEncryptedSecret* unpack_rsa_encrypted_secret ( Octstr *  data,
long *  charpos 
)

◆ unpack_rsa_pubkey()

RSAPublicKey* unpack_rsa_pubkey ( Octstr *  data,
long *  charpos 
)

◆ unpack_rsa_secret()

RSASecret* unpack_rsa_secret ( Octstr *  data,
long *  charpos 
)

◆ unpack_signature()

Signature* unpack_signature ( Octstr *  data,
long *  charpos 
)

◆ unpack_wtls_certificate()

WTLSCertificate* unpack_wtls_certificate ( Octstr *  data,
long *  charpos 
)
See file LICENSE for details about the license agreement for using, modifying, copying or deriving work from this software.