Lines Matching refs:tls_context
743 state->tls_context = tls_server_post_accept(state->tls_context); in tlsp_post_handshake()
745 state->tls_context = tls_client_post_connect(state->tls_context, in tlsp_post_handshake()
747 if (state->tls_context == 0) { in tlsp_post_handshake()
764 (void *) state->tls_context), in tlsp_post_handshake()
790 TLS_SESS_STATE *tls_context = state->tls_context; in tlsp_strategy() local
818 ssl_stat = SSL_accept(tls_context->con); in tlsp_strategy()
820 ssl_stat = SSL_connect(tls_context->con); in tlsp_strategy()
822 handshake_err = SSL_get_error(tls_context->con, ssl_stat); in tlsp_strategy()
846 if (!SSL_in_init(tls_context->con) in tlsp_strategy()
847 && (ssl_stat = SSL_shutdown(tls_context->con)) < 0) { in tlsp_strategy()
848 handshake_err = SSL_get_error(tls_context->con, ssl_stat); in tlsp_strategy()
876 ssl_stat = SSL_write(tls_context->con, NBBIO_READ_BUF(plaintext_buf), in tlsp_strategy()
878 ssl_write_err = SSL_get_error(tls_context->con, ssl_stat); in tlsp_strategy()
909 ssl_stat = SSL_read(tls_context->con, in tlsp_strategy()
914 ssl_read_err = SSL_get_error(tls_context->con, ssl_stat); in tlsp_strategy()
1031 state->tls_context = tls_client_start(state->client_start_props); in tlsp_client_start_pre_handshake()
1032 if (state->tls_context != 0) in tlsp_client_start_pre_handshake()
1078 state->tls_context = in tlsp_server_start_pre_handshake()
1092 if (state->tls_context == 0) { in tlsp_server_start_pre_handshake()