A simple library to support serving https.

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Wed Apr 01 12:48:52 2020 +0000
Revision:
24:cb43290fc439
Parent:
19:f22327e8be7b
Added check so that if the client closes the TCP connection before the TLS connection is established then respond that we have finished and the TCP connection is to be closed.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 2:82268409e83f 1
andrewboyson 2:82268409e83f 2 #define TLS_CONTENT_TYPE_CHANGE_CIPHER 20
andrewboyson 2:82268409e83f 3 #define TLS_CONTENT_TYPE_ALERT 21
andrewboyson 13:0a80b49a5e78 4 #define TLS_CONTENT_TYPE_HANDSHAKE 22
andrewboyson 13:0a80b49a5e78 5 #define TLS_CONTENT_TYPE_APPLICATION 23
andrewboyson 13:0a80b49a5e78 6 #define TLS_CONTENT_TYPE_HEARTBEAT 24
andrewboyson 2:82268409e83f 7
andrewboyson 13:0a80b49a5e78 8 #define TLS_HANDSHAKE_HELLO_REQUEST 0
andrewboyson 13:0a80b49a5e78 9 #define TLS_HANDSHAKE_CLIENT_HELLO 1
andrewboyson 13:0a80b49a5e78 10 #define TLS_HANDSHAKE_SERVER_HELLO 2
andrewboyson 13:0a80b49a5e78 11 #define TLS_HANDSHAKE_NEW_SESSION_TICKET 4
andrewboyson 13:0a80b49a5e78 12 #define TLS_HANDSHAKE_ENCRYPTED_EXTENSIONS 8
andrewboyson 13:0a80b49a5e78 13 #define TLS_HANDSHAKE_CERTIFICATE 11
andrewboyson 13:0a80b49a5e78 14 #define TLS_HANDSHAKE_SERVER_KEY_EXCHANGE 12
andrewboyson 13:0a80b49a5e78 15 #define TLS_HANDSHAKE_CERTIFICATE_REQUEST 13
andrewboyson 13:0a80b49a5e78 16 #define TLS_HANDSHAKE_SERVER_HELLO_DONE 14
andrewboyson 13:0a80b49a5e78 17 #define TLS_HANDSHAKE_CERTIFICATE_VERIFY 15
andrewboyson 13:0a80b49a5e78 18 #define TLS_HANDSHAKE_CLIENT_KEY_EXCHANGE 16
andrewboyson 13:0a80b49a5e78 19 #define TLS_HANDSHAKE_FINISHED 20
andrewboyson 2:82268409e83f 20
andrewboyson 2:82268409e83f 21 #define TLS_ALERT_WARNING 1
andrewboyson 2:82268409e83f 22 #define TLS_ALERT_FATAL 2
andrewboyson 2:82268409e83f 23 #define TLS_ALERT_ILLEGAL_PARAMETER 47
andrewboyson 2:82268409e83f 24 #define TLS_ALERT_INTERNAL_ERROR 80
andrewboyson 2:82268409e83f 25
andrewboyson 17:93feb2a51d58 26 #define TLS_LENGTH_PRE_MASTER_SECRET 48
andrewboyson 17:93feb2a51d58 27 #define TLS_LENGTH_MASTER_SECRET 48
andrewboyson 17:93feb2a51d58 28 #define TLS_LENGTH_RANDOM 32
andrewboyson 17:93feb2a51d58 29 #define TLS_LENGTH_VERIFY 12
andrewboyson 17:93feb2a51d58 30