Skip to content

Commit

Permalink
Make connect_dtls_socket() and try_dtls_handshake() static
Browse files Browse the repository at this point in the history
They aren't used outside dtls.c.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 26, 2015
1 parent aaea080 commit e66e465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions dtls.c
Expand Up @@ -194,7 +194,7 @@ static int start_dtls_handshake(struct openconnect_info *vpninfo, int dtls_fd)
return 0;
}

int dtls_try_handshake(struct openconnect_info *vpninfo)
static int dtls_try_handshake(struct openconnect_info *vpninfo)
{
int ret = SSL_do_handshake(vpninfo->dtls_ssl);

Expand Down Expand Up @@ -385,7 +385,7 @@ static int start_dtls_handshake(struct openconnect_info *vpninfo, int dtls_fd)
return 0;
}

int dtls_try_handshake(struct openconnect_info *vpninfo)
static int dtls_try_handshake(struct openconnect_info *vpninfo)
{
int err = gnutls_handshake(vpninfo->dtls_ssl);
char *str;
Expand Down Expand Up @@ -455,7 +455,7 @@ void dtls_shutdown(struct openconnect_info *vpninfo)
}
#endif

int connect_dtls_socket(struct openconnect_info *vpninfo)
static int connect_dtls_socket(struct openconnect_info *vpninfo)
{
int dtls_fd, ret, sndbuf;

Expand Down
2 changes: 0 additions & 2 deletions openconnect-internal.h
Expand Up @@ -662,8 +662,6 @@ intptr_t os_setup_tun(struct openconnect_info *vpninfo);
/* dtls.c */
int dtls_setup(struct openconnect_info *vpninfo, int dtls_attempt_period);
int dtls_mainloop(struct openconnect_info *vpninfo, int *timeout);
int dtls_try_handshake(struct openconnect_info *vpninfo);
int connect_dtls_socket(struct openconnect_info *vpninfo);
void dtls_close(struct openconnect_info *vpninfo);
void dtls_shutdown(struct openconnect_info *vpninfo);

Expand Down

0 comments on commit e66e465

Please sign in to comment.