From 3616bb63586df04b22de00f49bc92d92dff1b8b6 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 26 Oct 2015 11:13:56 +0000 Subject: [PATCH] Make dtls1_link_min_mtu static The function dtls1_link_min_mtu() was only used within d1_lib.c so make it static. Reviewed-by: Tim Hudson Reviewed-by: Richard Levitte --- ssl/d1_lib.c | 3 ++- ssl/ssl_locl.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index f8a6a37362..733973b332 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -77,6 +77,7 @@ static void get_current_time(struct timeval *t); static int dtls1_set_handshake_header(SSL *s, int type, unsigned long len); static int dtls1_handshake_write(SSL *s); int dtls1_listen(SSL *s, struct sockaddr *client); +static unsigned int dtls1_link_min_mtu(void); /* XDTLS: figure out the right values */ static const unsigned int g_probable_mtu[] = { 1500, 512, 256 }; @@ -1135,7 +1136,7 @@ int dtls1_query_mtu(SSL *s) return 1; } -unsigned int dtls1_link_min_mtu(void) +static unsigned int dtls1_link_min_mtu(void) { return (g_probable_mtu[(sizeof(g_probable_mtu) / sizeof(g_probable_mtu[0])) - 1]); diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h index c04eaa58c1..56ec70f995 100644 --- a/ssl/ssl_locl.h +++ b/ssl/ssl_locl.h @@ -1981,7 +1981,6 @@ __owur unsigned int dtls_raw_hello_verify_request(unsigned char *buf, unsigned char cookie_len); __owur int dtls1_send_newsession_ticket(SSL *s); __owur unsigned int dtls1_min_mtu(SSL *s); -__owur unsigned int dtls1_link_min_mtu(void); void dtls1_hm_fragment_free(hm_fragment *frag); __owur int dtls1_query_mtu(SSL *s); -- 2.25.1