Andrew Boyson / crypto

Dependents:   oldheating gps motorhome heating

tls/tls-state.h

Committer:
andrewboyson
Date:
2019-08-20
Revision:
4:6a1d887f1cad
Parent:
2:82268409e83f

File content as of revision 4:6a1d887f1cad:

#include "sha256.h"

#define DO_WAIT_CLIENT_HELLO                0
#define DO_SEND_SERVER_HELLO                1
#define DO_WAIT_CLIENT_CHANGE               2
#define DO_WAIT_DECRYPT_MASTER_SECRET       3
#define DO_SEND_SERVER_CHANGE               4
#define DO_APPLICATION                      5
#define DO_SEND_ALERT_ILLEGAL_PARAMETER     6
#define DO_SEND_ALERT_INTERNAL_ERROR        7

struct TlsState
{
    int toDo;
    int session;
    struct Sha256State handshakeHash;
};