#include "gwlib/list.h"
#include "gwlib/octstr.h"
#include "wtls.h"
 
Go to the source code of this file.
 | 
| enum   | wtls_pdu_modes { ChangeCipher_PDU = 1, 
Alert_PDU, 
Handshake_PDU, 
Application_PDU
 } | 
|   | 
| enum   | handshake_type {  
  hello_request = 0, 
client_hello = 1, 
server_hello = 2, 
certificate = 11, 
 
  server_key_exchange = 12, 
certificate_request = 13, 
server_hello_done = 14, 
certificate_verify = 15, 
 
  client_key_exchange = 16, 
finished = 20
 
 } | 
|   | 
| enum   | compmethod { null_comp = 0
 } | 
|   | 
| enum   | certificateformat { WTLSCert = 1, 
X509Cert, 
X968Cert
 } | 
|   | 
| enum   | sig_algo { anonymous, 
ecdsa_sha, 
rsa_sha
 } | 
|   | 
| enum   | keyex_suite {  
  null_k, 
shared_secret, 
dh_anon, 
dh_anon_512, 
 
  dh_anon_768, 
rsa_anon, 
rsa_anon_512, 
rsa_anon_768, 
 
  rsa, 
rsa_512, 
rsa_768, 
ecdh_anon, 
 
  ecdh_anon_113, 
ecdh_anon_131, 
ecdh_ecdsa
 
 } | 
|   | 
| enum   | pubkey_algo { rsa_pubkey, 
diffie_hellman_pubkey, 
elliptic_curve_pubkey
 } | 
|   | 
| enum   | identifier_type {  
  null = 0, 
text, 
binary, 
key_hash_sha = 254, 
 
  x509_name = 255
 
 } | 
|   | 
| enum   | public_key_type { rsa_key = 2, 
ecdh_key = 3, 
ecdsa_key = 4
 } | 
|   | 
| enum   | ecbasistype { ec_basis_onb = 1, 
ec_basis_trinomial, 
ec_basis_pentanomial, 
ec_basis_polynomial
 } | 
|   | 
| enum   | ecfield { ec_prime_p, 
ec_characteristic_two
 } | 
|   | 
| enum   | AlertLevel { warning_alert = 1, 
critical_alert, 
fatal_alert
 } | 
|   | 
| enum   | AlertDescription {  
  connection_close_notify = 0, 
session_close_notify, 
no_connection = 5, 
unexpected_message = 10, 
 
  time_required, 
bad_record_mac = 20, 
decryption_failed, 
record_overflow, 
 
  decompression_failure = 30, 
handshake_failure = 40, 
bad_certificate = 42, 
unsupported_certificate, 
 
  certificate_revoked, 
certificate_expired, 
certificate_unknown, 
illegal_parameter, 
 
  unknown_ca, 
access_denied, 
decode_error, 
decrypt_error, 
 
  unknown_key_id, 
disabled_key_id, 
key_exchange_disabled, 
session_not_ready, 
 
  unknown_parameter_index, 
duplicate_finished_received, 
export_restriction = 60, 
protocol_version = 70, 
 
  insufficient_security, 
internal_error = 80, 
user_canceled = 90, 
no_renegotiation = 100
 
 } | 
|   | 
◆ Alert
◆ Application
◆ Certificate
◆ CertificateFormat
◆ CertificateRequest
◆ Certificates
◆ CertificateVerify
◆ ChangeCipher
◆ CipherSuite
◆ ClientHello
◆ ClientKeyExchange
◆ CompressionMethod
◆ DHParameters
◆ DHPublicKey
◆ ECBasisType
◆ ECCurve
◆ ECField
◆ ECParameters
◆ ECPoint
◆ ECPublicKey
◆ Finished
◆ Handshake
◆ HandshakeType
◆ HelloRequest
◆ Identifier
◆ IdentifierType
◆ KeyExchangeId
◆ KeyExchangeSuite
◆ ParameterSet
◆ ParameterSpecifier
◆ PublicKey
◆ PublicKeyAlgorithm
◆ PublicKeyType
◆ Random
◆ RSAEncryptedSecret
◆ RSAPublicKey
◆ RSASecret
◆ ServerHello
◆ ServerHelloDone
◆ ServerKeyExchange
◆ Signature
◆ SignatureAlgorithm
◆ ToBeSignedCertificate
◆ wtls_Payload
◆ wtls_PDU
◆ wtls_pdu_modes
◆ WTLSCertificate
◆ AlertDescription
| Enumerator | 
|---|
| connection_close_notify  |  | 
| session_close_notify  |  | 
| no_connection  |  | 
| unexpected_message  |  | 
| time_required  |  | 
| bad_record_mac  |  | 
| decryption_failed  |  | 
| record_overflow  |  | 
| decompression_failure  |  | 
| handshake_failure  |  | 
| bad_certificate  |  | 
| unsupported_certificate  |  | 
| certificate_revoked  |  | 
| certificate_expired  |  | 
| certificate_unknown  |  | 
| illegal_parameter  |  | 
| unknown_ca  |  | 
| access_denied  |  | 
| decode_error  |  | 
| decrypt_error  |  | 
| unknown_key_id  |  | 
| disabled_key_id  |  | 
| key_exchange_disabled  |  | 
| session_not_ready  |  | 
| unknown_parameter_index  |  | 
| duplicate_finished_received  |  | 
| export_restriction  |  | 
| protocol_version  |  | 
| insufficient_security  |  | 
| internal_error  |  | 
| user_canceled  |  | 
| no_renegotiation  |  | 
Definition at line 371 of file wtls_pdu.h.
 
 
◆ AlertLevel
| Enumerator | 
|---|
| warning_alert  |  | 
| critical_alert  |  | 
| fatal_alert  |  | 
Definition at line 365 of file wtls_pdu.h.
 
 
◆ certificateformat
| Enumerator | 
|---|
| WTLSCert  |  | 
| X509Cert  |  | 
| X968Cert  |  | 
Definition at line 93 of file wtls_pdu.h.
enum certificateformat CertificateFormat
 
 
 
 
◆ compmethod
Definition at line 89 of file wtls_pdu.h.
enum compmethod CompressionMethod
 
 
 
 
◆ ecbasistype
| Enumerator | 
|---|
| ec_basis_onb  |  | 
| ec_basis_trinomial  |  | 
| ec_basis_pentanomial  |  | 
| ec_basis_polynomial  |  | 
Definition at line 143 of file wtls_pdu.h.
enum ecbasistype ECBasisType
 
 
 
 
◆ ecfield
| Enumerator | 
|---|
| ec_prime_p  |  | 
| ec_characteristic_two  |  | 
Definition at line 150 of file wtls_pdu.h.
 
 
◆ handshake_type
| Enumerator | 
|---|
| hello_request  |  | 
| client_hello  |  | 
| server_hello  |  | 
| certificate  |  | 
| server_key_exchange  |  | 
| certificate_request  |  | 
| server_hello_done  |  | 
| certificate_verify  |  | 
| client_key_exchange  |  | 
| finished  |  | 
Definition at line 76 of file wtls_pdu.h.
enum handshake_type HandshakeType
 
 
 
 
◆ identifier_type
| Enumerator | 
|---|
| null  |  | 
| text  |  | 
| binary  |  | 
| key_hash_sha  |  | 
| x509_name  |  | 
Definition at line 129 of file wtls_pdu.h.
enum identifier_type IdentifierType
 
 
 
 
◆ keyex_suite
| Enumerator | 
|---|
| null_k  |  | 
| shared_secret  |  | 
| dh_anon  |  | 
| dh_anon_512  |  | 
| dh_anon_768  |  | 
| rsa_anon  |  | 
| rsa_anon_512  |  | 
| rsa_anon_768  |  | 
| rsa  |  | 
| rsa_512  |  | 
| rsa_768  |  | 
| ecdh_anon  |  | 
| ecdh_anon_113  |  | 
| ecdh_anon_131  |  | 
| ecdh_ecdsa  |  | 
Definition at line 105 of file wtls_pdu.h.
enum keyex_suite KeyExchangeSuite
 
 
 
 
◆ pubkey_algo
| Enumerator | 
|---|
| rsa_pubkey  |  | 
| diffie_hellman_pubkey  |  | 
| elliptic_curve_pubkey  |  | 
Definition at line 123 of file wtls_pdu.h.
enum pubkey_algo PublicKeyAlgorithm
 
 
 
 
◆ public_key_type
| Enumerator | 
|---|
| rsa_key  |  | 
| ecdh_key  |  | 
| ecdsa_key  |  | 
Definition at line 137 of file wtls_pdu.h.
enum public_key_type PublicKeyType
 
 
 
 
◆ sig_algo
| Enumerator | 
|---|
| anonymous  |  | 
| ecdsa_sha  |  | 
| rsa_sha  |  | 
Definition at line 99 of file wtls_pdu.h.
enum sig_algo SignatureAlgorithm
 
 
 
 
◆ wtls_pdu_modes
| Enumerator | 
|---|
| ChangeCipher_PDU  |  | 
| Alert_PDU  |  | 
| Handshake_PDU  |  | 
| Application_PDU  |  | 
Definition at line 69 of file wtls_pdu.h.
 
 
◆ wtls_pack_payloadlist()
      
        
          | Octstr* wtls_pack_payloadlist  | 
          ( | 
          List *  | 
          payloadlist,  | 
        
        
           | 
           | 
          int  | 
          seqnum  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ wtls_payload_destroy()
◆ wtls_payload_dump()
◆ wtls_payload_pack()
◆ wtls_payload_unpack()
◆ wtls_pdu_create()
◆ wtls_pdu_destroy()
◆ wtls_pdu_dump()
      
        
          | void wtls_pdu_dump  | 
          ( | 
          wtls_PDU *  | 
          msg,  | 
        
        
           | 
           | 
          int  | 
          level  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ wtls_pdu_pack()
◆ wtls_pdu_unpack()
◆ wtls_pldList_destroy()
      
        
          | void wtls_pldList_destroy  | 
          ( | 
          List *  | 
          pldList | ) | 
           | 
        
      
 
 
◆ wtls_unpack_payloadlist()