From: Matt Caswell Date: Mon, 26 Oct 2015 11:13:56 +0000 (+0000) Subject: Make dtls1_link_min_mtu static X-Git-Tag: OpenSSL_1_1_0-pre1~333 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3616bb63586df04b22de00f49bc92d92dff1b8b6;p=thirdparty%2Fopenssl.git 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 --- diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index f8a6a373629..733973b332f 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 c04eaa58c10..56ec70f9959 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);