-/* $OpenBSD: server.c,v 1.88 2016/08/15 16:12:34 jsing Exp $ */
+/* $OpenBSD: server.c,v 1.89 2016/08/16 08:36:29 reyk Exp $ */
/*
* Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org>
int server_tls_init(struct server *);
void server_tls_readcb(int, short, void *);
void server_tls_writecb(int, short, void *);
+void server_tls_handshake(int, short, void *);
void server_accept(int, short, void *);
-void server_handshake_tls(int, short, void *);
void server_input(struct client *);
void server_inflight_dec(struct client *, const char *);
return;
}
event_again(&clt->clt_ev, clt->clt_s, EV_TIMEOUT|EV_READ,
- server_handshake_tls, &clt->clt_tv_start,
+ server_tls_handshake, &clt->clt_tv_start,
&srv->srv_conf.timeout, clt);
return;
}
}
void
-server_handshake_tls(int fd, short event, void *arg)
+server_tls_handshake(int fd, short event, void *arg)
{
struct client *clt = (struct client *)arg;
struct server *srv = (struct server *)clt->clt_srv;
server_input(clt);
} else if (ret == TLS_WANT_POLLIN) {
event_again(&clt->clt_ev, clt->clt_s, EV_TIMEOUT|EV_READ,
- server_handshake_tls, &clt->clt_tv_start,
+ server_tls_handshake, &clt->clt_tv_start,
&srv->srv_conf.timeout, clt);
} else if (ret == TLS_WANT_POLLOUT) {
event_again(&clt->clt_ev, clt->clt_s, EV_TIMEOUT|EV_WRITE,
- server_handshake_tls, &clt->clt_tv_start,
+ server_tls_handshake, &clt->clt_tv_start,
&srv->srv_conf.timeout, clt);
} else {
log_warnx("%s: tls handshake failed - %s", __func__,