D   A   T   A   W   O   K





Creation: January 01 1970
Modified: September 11 2018

[[[CLIENT-CONNECT-REQUEST]]]

CLIENT manda l'handshake request

                                                        SERVER
                                                        [0] ossl_statem_server_process_message
                                                            case TLS_ST_SR_CLNT_HELLO:
                                                                return tls_process_client_hello(s, pkt);

CLIENT [1] ossl_statem_client_process_message TLS_ST_CR_SRVR_HELLO: return tls_process_server_hello(s, pkt); TLS_ST_CR_CERT: return tls_process_server_certificate(s, pkt); TLS_ST_CR_KEY_EXCH: return tls_process_key_exchange(s, pkt); TLS_ST_CR_SRVR_DONE: return tls_process_server_done(s, pkt);

                                                        SERVER
                                                        [2] ossl_statem_server_process_message
                                                            TLS_ST_SR_KEY_EXCH:
                                                                return tls_process_client_key_exchange(s, pkt);
                                                            TLS_ST_SR_CHANGE:
                                                                return tls_process_change_cipher_spec(s, pkt);  
                                                            TLS_ST_SR_FINISHED:
                                                                return tls_process_finished(s, pkt);

                                                            [[ CONNECT-INDICATION ]](cli-cert(o), ...)  // devo farlo qui, prima non ho il client certificate
                                                            [[ CONNECT-RESPONSE]]] (result)

CLIENT [3] ossl_statem_client_process_message TLS_ST_CR_SESSION_TICKET: return tls_process_new_session_ticket(s, pkt); TLS_ST_CR_CHANGE: return tls_process_change_cipher_spec(s, pkt); TLS_ST_CR_FINISHED: return tls_process_finished(s, pkt);

[[[CONNECT-CONFIRMATION]]](srv-cert, result )

CLIENT

CONNECT REQ -> | (hello) | | ----------------> | | (hello, cert, key) | | <---------------- |

[[[CONNECT-CONFIRMATION]]] (SERVER CERTIFICATE)

davxy