From 34cd1859b983bd249841b1563f57d2bf811b736d Mon Sep 17 00:00:00 2001 From: jsing Date: Sat, 27 Jan 2024 14:31:01 +0000 Subject: [PATCH] Make tls13_legacy_return_code() static. --- lib/libssl/tls13_internal.h | 3 +-- lib/libssl/tls13_legacy.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h index 68e695e53a1..75d31fb2ade 100644 --- a/lib/libssl/tls13_internal.h +++ b/lib/libssl/tls13_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_internal.h,v 1.102 2024/01/27 14:23:51 jsing Exp $ */ +/* $OpenBSD: tls13_internal.h,v 1.103 2024/01/27 14:31:01 jsing Exp $ */ /* * Copyright (c) 2018 Bob Beck * Copyright (c) 2018 Theo Buehler @@ -326,7 +326,6 @@ int tls13_use_legacy_client(struct tls13_ctx *ctx); int tls13_use_legacy_server(struct tls13_ctx *ctx); int tls13_legacy_accept(SSL *ssl); int tls13_legacy_connect(SSL *ssl); -int tls13_legacy_return_code(SSL *ssl, ssize_t ret); ssize_t tls13_legacy_wire_read_cb(void *buf, size_t n, void *arg); ssize_t tls13_legacy_wire_write_cb(const void *buf, size_t n, void *arg); ssize_t tls13_legacy_wire_flush_cb(void *arg); diff --git a/lib/libssl/tls13_legacy.c b/lib/libssl/tls13_legacy.c index e9aca070e9e..44959a31861 100644 --- a/lib/libssl/tls13_legacy.c +++ b/lib/libssl/tls13_legacy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_legacy.c,v 1.41 2023/11/28 13:19:04 tb Exp $ */ +/* $OpenBSD: tls13_legacy.c,v 1.42 2024/01/27 14:31:01 jsing Exp $ */ /* * Copyright (c) 2018, 2019 Joel Sing * @@ -159,7 +159,7 @@ tls13_legacy_error(SSL *ssl) ctx->error.line); } -int +static int tls13_legacy_return_code(SSL *ssl, ssize_t ret) { if (ret > INT_MAX) { -- 2.20.1