From: reyk Date: Tue, 16 Aug 2016 08:36:29 +0000 (+0000) Subject: Rename server_handshake_tls() to server_tls_handshake() to align with X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9211a933883c27876887142c91cc73a055c11750;p=openbsd Rename server_handshake_tls() to server_tls_handshake() to align with the other server_tls_* functions (and I like the prefix notation better). No functional change. --- diff --git a/usr.sbin/httpd/server.c b/usr.sbin/httpd/server.c index 849b92a6bba..403d12fa775 100644 --- a/usr.sbin/httpd/server.c +++ b/usr.sbin/httpd/server.c @@ -1,4 +1,4 @@ -/* $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 @@ -63,9 +63,9 @@ int server_socket_listen(struct sockaddr_storage *, in_port_t, 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 *); @@ -971,7 +971,7 @@ server_accept(int fd, short event, void *arg) 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; } @@ -992,7 +992,7 @@ server_accept(int fd, short event, void *arg) } 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; @@ -1011,11 +1011,11 @@ server_handshake_tls(int fd, short event, void *arg) 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__,