openssl/ssl
Matt Caswell f8e0a55738 Add initial state machine rewrite code
This is the first drop of the new state machine code.

The rewrite has the following objectives:
- Remove duplication of state code between client and server
- Remove duplication of state code between TLS and DTLS
- Simplify transitions and bring the logic together in a single location
  so that it is easier to validate
- Remove duplication of code between each of the message handling functions
- Receive a message first and then work out whether that is a valid
  transition - not the other way around (the other way causes lots of issues
  where we are expecting one type of message next but actually get something
  else)
- Separate message flow state from handshake state (in order to better
  understand each)
  - message flow state = when to flush buffers; handling restarts in the
    event of NBIO events; handling the common flow of steps for reading a
    message and the common flow of steps for writing a message etc
  - handshake state = what handshake message are we working on now
- Control complexity: only the state machine can change state: keep all
  the state changes local to a file

This builds on previous state machine related work:
- Surface CCS processing in the state machine
- Version negotiation rewrite

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-10-30 08:27:59 +00:00
..
record Address more Windows warnings illuminated by mingw. 2015-10-06 09:44:27 +02:00
bio_ssl.c Handle SSL_ERROR_WANT_X509_LOOKUP 2015-09-20 14:19:49 +01:00
d1_both.c Remove remaining old listen code 2015-09-23 13:53:26 +01:00
d1_clnt.c Fix DTLS session ticket renewal 2015-08-26 10:17:49 +01:00
d1_lib.c DTLS: remove unused cookie field 2015-10-09 15:32:35 +02:00
d1_meth.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
d1_msg.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
d1_srtp.c PACKETise ServerHello processing 2015-09-07 10:45:38 +01:00
d1_srvr.c Sanity check cookie_len 2015-09-23 13:53:27 +01:00
install-ssl.com Updates following review comments 2015-05-16 09:20:52 +01:00
Makefile Add initial state machine rewrite code 2015-10-30 08:27:59 +00:00
packet_locl.h Avoid undefined behaviour in PACKET_buf_init 2015-10-21 16:13:53 +01:00
s3_both.c Add initial state machine rewrite code 2015-10-30 08:27:59 +00:00
s3_cbc.c Identify and move OpenSSL internal header files 2015-05-14 15:13:49 +02:00
s3_clnt.c Remove useless code 2015-10-23 19:52:08 +02:00
s3_enc.c Avoid duplication. 2015-06-23 22:24:09 +01:00
s3_lib.c Add initial state machine rewrite code 2015-10-30 08:27:59 +00:00
s3_msg.c Introduce the functions RECORD_LAYER_release, RECORD_LAYER_read_pending, and 2015-03-26 15:01:59 +00:00
s3_srvr.c Remove useless code 2015-10-23 19:52:08 +02:00
ssl_algs.c CCM support. 2015-08-14 06:56:11 +01:00
ssl_asn1.c Enable -Wmissing-variable-declarations and 2015-09-11 04:51:55 +01:00
ssl_cert.c Make no-psk compile without warnings. 2015-10-11 13:38:01 +01:00
ssl_ciph.c Change the DEFAULT ciphersuites to exclude DES, RC4 and RC2 2015-09-30 19:15:06 +01:00
ssl_conf.c Remove BIO_s_file_internal macro. 2015-10-02 14:22:05 -04:00
ssl_err2.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ssl_err.c Add initial state machine rewrite code 2015-10-30 08:27:59 +00:00
ssl_lib.c Add initial state machine rewrite code 2015-10-30 08:27:59 +00:00
ssl_locl.h Add initial state machine rewrite code 2015-10-30 08:27:59 +00:00
ssl_rsa.c Remove BIO_s_file_internal macro. 2015-10-02 14:22:05 -04:00
ssl_sess.c DTLS: remove unused cookie field 2015-10-09 15:32:35 +02:00
ssl_stat.c Version negotiation rewrite cleanup 2015-05-16 09:20:38 +01:00
ssl_txt.c Remove BIO_s_file_internal macro. 2015-10-02 14:22:05 -04:00
ssl_utst.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ssl-lib.com Move SSLv3_*method() functions 2015-05-16 09:20:58 +01:00
statem.c Add initial state machine rewrite code 2015-10-30 08:27:59 +00:00
t1_clnt.c Move SSLv3_*method() functions 2015-05-16 09:20:58 +01:00
t1_enc.c ccm8 support 2015-08-14 06:56:11 +01:00
t1_ext.c Remove support for OPENSSL_NO_TLSEXT 2015-05-22 23:10:51 +01:00
t1_lib.c Remove useless code 2015-10-23 19:52:08 +02:00
t1_meth.c Move SSLv3_*method() functions 2015-05-16 09:20:58 +01:00
t1_reneg.c PACKETise ServerHello processing 2015-09-07 10:45:38 +01:00
t1_srvr.c Move SSLv3_*method() functions 2015-05-16 09:20:58 +01:00
t1_trce.c Add full PSK trace support 2015-07-30 14:43:35 +01:00
tls_srp.c Use single master secret generation function. 2015-06-29 11:47:59 +01:00