summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-11-17 06:43:46 +0000
committerjsing <jsing@openbsd.org>2019-11-17 06:43:46 +0000
commiteb818a3e8307a589aa7a07fc5eeaccc6bc7d5314 (patch)
treebcb34b37e98d13a5d5fd11b8253ce3c207835628
parentAdd the initial framework for the TLSv1.3 server. (diff)
downloadwireguard-openbsd-eb818a3e8307a589aa7a07fc5eeaccc6bc7d5314.tar.xz
wireguard-openbsd-eb818a3e8307a589aa7a07fc5eeaccc6bc7d5314.zip
Move the TLSv1.3 server message handling stubs.
-rw-r--r--lib/libssl/tls13_handshake.c125
-rw-r--r--lib/libssl/tls13_server.c125
2 files changed, 125 insertions, 125 deletions
diff --git a/lib/libssl/tls13_handshake.c b/lib/libssl/tls13_handshake.c
index 542410bd395..9f087888e14 100644
--- a/lib/libssl/tls13_handshake.c
+++ b/lib/libssl/tls13_handshake.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_handshake.c,v 1.35 2019/04/05 20:23:38 tb Exp $ */
+/* $OpenBSD: tls13_handshake.c,v 1.36 2019/11/17 06:43:46 jsing Exp $ */
/*
* Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org>
* Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
@@ -400,126 +400,3 @@ tls13_handshake_recv_action(struct tls13_ctx *ctx,
return ret;
}
-
-int
-tls13_client_hello_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_hello_retry_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_server_hello_retry_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_hello_retry_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-
-int
-tls13_client_end_of_early_data_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_end_of_early_data_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_certificate_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_certificate_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_certificate_verify_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_certificate_verify_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_finished_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_key_update_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_client_key_update_recv(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_server_hello_send(struct tls13_ctx *ctx)
-{
- ctx->handshake_stage.hs_type |= NEGOTIATED;
-
- return 0;
-}
-
-int
-tls13_server_hello_retry_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_server_certificate_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_server_certificate_request_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_server_certificate_verify_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
-
-int
-tls13_server_finished_send(struct tls13_ctx *ctx)
-{
- return 0;
-}
diff --git a/lib/libssl/tls13_server.c b/lib/libssl/tls13_server.c
index 8d484fcb459..56ad5f8faaf 100644
--- a/lib/libssl/tls13_server.c
+++ b/lib/libssl/tls13_server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls13_server.c,v 1.1 2019/11/17 06:35:30 jsing Exp $ */
+/* $OpenBSD: tls13_server.c,v 1.2 2019/11/17 06:43:46 jsing Exp $ */
/*
* Copyright (c) 2019 Joel Sing <jsing@openbsd.org>
*
@@ -77,3 +77,126 @@ tls13_legacy_accept(SSL *ssl)
return tls13_legacy_return_code(ssl, ret);
}
+
+int
+tls13_client_hello_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_hello_retry_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_server_hello_retry_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_hello_retry_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+
+int
+tls13_client_end_of_early_data_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_end_of_early_data_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_certificate_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_certificate_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_certificate_verify_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_certificate_verify_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_finished_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_key_update_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_client_key_update_recv(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_server_hello_send(struct tls13_ctx *ctx)
+{
+ ctx->handshake_stage.hs_type |= NEGOTIATED;
+
+ return 0;
+}
+
+int
+tls13_server_hello_retry_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_server_encrypted_extensions_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_server_certificate_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_server_certificate_request_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_server_certificate_verify_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}
+
+int
+tls13_server_finished_send(struct tls13_ctx *ctx)
+{
+ return 0;
+}