Rename server_handshake_tls() to server_tls_handshake() to align with
authorreyk <reyk@openbsd.org>
Tue, 16 Aug 2016 08:36:29 +0000 (08:36 +0000)
committerreyk <reyk@openbsd.org>
Tue, 16 Aug 2016 08:36:29 +0000 (08:36 +0000)
the other server_tls_* functions (and I like the prefix notation
better).  No functional change.

usr.sbin/httpd/server.c

index 849b92a..403d12f 100644 (file)
@@ -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 <reyk@openbsd.org>
@@ -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__,