Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Print the compression algorithm name after DTLS is connected
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Nikos Mavrogiannopoulos authored and David Woodhouse committed Oct 6, 2015
1 parent 43a16bb commit 287f535
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions dtls.c
Expand Up @@ -338,6 +338,12 @@ static int dtls_try_handshake(struct openconnect_info *vpninfo)
_("Established DTLS connection (using OpenSSL). Ciphersuite %s.\n"),
vpninfo->dtls_cipher);

c = openconnect_get_dtls_compression(vpninfo);
if (c) {
vpn_progress(vpninfo, PRG_INFO,
_("DTLS connection compression using %s.\n"), c);
}

vpninfo->dtls_times.last_rekey = vpninfo->dtls_times.last_rx =
vpninfo->dtls_times.last_tx = time(NULL);

Expand Down Expand Up @@ -625,10 +631,16 @@ static int dtls_try_handshake(struct openconnect_info *vpninfo)
vpninfo->dtls_state = DTLS_CONNECTED;
str = get_gnutls_cipher(vpninfo->dtls_ssl);
if (str) {
const char *c;
vpn_progress(vpninfo, PRG_INFO,
_("Established DTLS connection (using GnuTLS). Ciphersuite %s.\n"),
str);
gnutls_free(str);
c = openconnect_get_dtls_compression(vpninfo);
if (c) {
vpn_progress(vpninfo, PRG_INFO,
_("DTLS connection compression using %s.\n"), c);
}
}

vpninfo->dtls_times.last_rekey = vpninfo->dtls_times.last_rx =
Expand Down

0 comments on commit 287f535

Please sign in to comment.