Lines Matching defs:tls_cctx
623 struct tls *tls_cctx = NULL;
638 (tls_cctx = tls_setup_server(tls_ctx, connfd, host)))
639 readwrite(connfd, tls_cctx);
642 if (tls_cctx)
643 timeout_tls(s, tls_cctx, tls_close);
645 tls_free(tls_cctx);
828 struct tls *tls_cctx;
831 if (tls_accept_socket(tls_ctx, &tls_cctx, connfd) == -1) {
833 } else if (timeout_tls(connfd, tls_cctx, tls_handshake) == -1) {
834 if ((errstr = tls_error(tls_cctx)) == NULL)
838 int gotcert = tls_peer_cert_provided(tls_cctx);
841 report_tls(tls_cctx, host);
845 (tls_peer_cert_hash(tls_cctx) == NULL ||
846 strcmp(tls_expecthash, tls_peer_cert_hash(tls_cctx)) != 0))
849 (!tls_peer_cert_contains_name(tls_cctx, tls_expectname)))
853 return tls_cctx;