Lines Matching refs:tls

743     nxt_openssl_conn_t  *tls;  local
752 tls = c->u.tls;
753 ticket = tls->conf->tickets->tickets;
787 } while (++i < tls->conf->tickets->count);
1037 nxt_openssl_conn_t *tls; local
1075 tls = c->u.tls;
1076 conf = tls->conf;
1166 nxt_openssl_conn_t *tls; local
1170 tls = nxt_mp_zget(c->mem_pool, sizeof(nxt_openssl_conn_t));
1171 if (tls == NULL) {
1175 c->u.tls = tls;
1176 nxt_buf_mem_set_size(&tls->buffer, conf->buffer_size);
1186 tls->session = s;
1188 tls->conf = conf;
1189 tls->conn = c;
1223 nxt_openssl_conn_t *tls; local
1227 tls = c->u.tls;
1229 if (tls != NULL) {
1230 c->u.tls = NULL;
1231 nxt_free(tls->buffer.start);
1232 SSL_free(tls->session);
1246 nxt_openssl_conn_t *tls; local
1257 tls = c->u.tls;
1259 if (tls == NULL) {
1263 nxt_debug(task, "openssl conn handshake: %d times", tls->times);
1267 ret = SSL_do_handshake(tls->session);
1279 tls->handshake = 1;
1305 if (tls->ssl_error == SSL_ERROR_WANT_READ && tls->times < 2) {
1306 tls->times++;
1338 nxt_openssl_conn_t *tls; local
1340 tls = c->u.tls;
1343 ret = SSL_read(tls->session, b->mem.free, size);
1390 nxt_openssl_conn_t *tls; local
1392 tls = sb->tls;
1394 ret = SSL_write(tls->session, buf, size);
1405 c = tls->conn;
1431 nxt_openssl_conn_t *tls; local
1439 tls = c->u.tls;
1441 if (tls == NULL) {
1445 s = tls->session;
1447 if (s == NULL || !tls->handshake) {
1466 if (tls->conf->no_wait_shutdown) {
1548 nxt_openssl_conn_t *tls; local
1550 tls = c->u.tls;
1552 tls->ssl_error = SSL_get_error(tls->session, ret);
1554 nxt_debug(task, "SSL_get_error(): %d", tls->ssl_error);
1556 switch (tls->ssl_error) {