summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_handshake.c
diff options
context:
space:
mode:
authorinoguchi <inoguchi@openbsd.org>2020-04-29 01:16:49 +0000
committerinoguchi <inoguchi@openbsd.org>2020-04-29 01:16:49 +0000
commit1887072c11622985a70a98e3b1094a13e55b8a4d (patch)
tree29adc7764704bba2db0caaf5ed84aeadc979edc3 /lib/libssl/tls13_handshake.c
parentIn virtual alias context, do not try to match catchall entries for (diff)
downloadwireguard-openbsd-1887072c11622985a70a98e3b1094a13e55b8a4d.tar.xz
wireguard-openbsd-1887072c11622985a70a98e3b1094a13e55b8a4d.zip
tls13_handshake internal functions to static in libssl
ok jsing@ tb@
Diffstat (limited to 'lib/libssl/tls13_handshake.c')
-rw-r--r--lib/libssl/tls13_handshake.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/lib/libssl/tls13_handshake.c b/lib/libssl/tls13_handshake.c
index 86046144dee..0d3e64dee8f 100644
--- a/lib/libssl/tls13_handshake.c
+++ b/lib/libssl/tls13_handshake.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_handshake.c,v 1.53 2020/04/22 17:05:07 jsing Exp $ */
+/* $OpenBSD: tls13_handshake.c,v 1.54 2020/04/29 01:16:49 inoguchi Exp $ */
/*
* Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
@@ -36,15 +36,16 @@ struct tls13_handshake_action {
int (*recv)(struct tls13_ctx *ctx, CBS *cbs);
};
-enum tls13_message_type tls13_handshake_active_state(struct tls13_ctx *ctx);
+static enum tls13_message_type
+ tls13_handshake_active_state(struct tls13_ctx *ctx);
-struct tls13_handshake_action *
+static struct tls13_handshake_action *
tls13_handshake_active_action(struct tls13_ctx *ctx);
-int tls13_handshake_advance_state_machine(struct tls13_ctx *ctx);
+static int tls13_handshake_advance_state_machine(struct tls13_ctx *ctx);
-int tls13_handshake_send_action(struct tls13_ctx *ctx,
+static int tls13_handshake_send_action(struct tls13_ctx *ctx,
struct tls13_handshake_action *action);
-int tls13_handshake_recv_action(struct tls13_ctx *ctx,
+static int tls13_handshake_recv_action(struct tls13_ctx *ctx,
struct tls13_handshake_action *action);
struct tls13_handshake_action state_machine[] = {
@@ -247,7 +248,7 @@ enum tls13_message_type handshakes[][TLS13_NUM_MESSAGE_TYPES] = {
const size_t handshake_count = sizeof(handshakes) / sizeof(handshakes[0]);
-enum tls13_message_type
+static enum tls13_message_type
tls13_handshake_active_state(struct tls13_ctx *ctx)
{
struct tls13_handshake_stage hs = ctx->handshake_stage;
@@ -260,7 +261,7 @@ tls13_handshake_active_state(struct tls13_ctx *ctx)
return handshakes[hs.hs_type][hs.message_number];
}
-struct tls13_handshake_action *
+static struct tls13_handshake_action *
tls13_handshake_active_action(struct tls13_ctx *ctx)
{
enum tls13_message_type mt = tls13_handshake_active_state(ctx);
@@ -271,7 +272,7 @@ tls13_handshake_active_action(struct tls13_ctx *ctx)
return &state_machine[mt];
}
-int
+static int
tls13_handshake_advance_state_machine(struct tls13_ctx *ctx)
{
if (++ctx->handshake_stage.message_number >= TLS13_NUM_MESSAGE_TYPES)
@@ -321,7 +322,7 @@ tls13_handshake_perform(struct tls13_ctx *ctx)
}
}
-int
+static int
tls13_handshake_send_action(struct tls13_ctx *ctx,
struct tls13_handshake_action *action)
{
@@ -369,7 +370,7 @@ tls13_handshake_send_action(struct tls13_ctx *ctx,
return TLS13_IO_SUCCESS;
}
-int
+static int
tls13_handshake_recv_action(struct tls13_ctx *ctx,
struct tls13_handshake_action *action)
{