diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-11-08 09:24:53 +0900 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-11-08 09:24:53 +0900 |
commit | 29424a8223c0ffe82b1bfdbd35ed15b67dcf44eb (patch) | |
tree | de9ac8bd176b59345da994f70deb2ad5e57cdfce /gweb | |
parent | da9db3784d10af4c0094c091808e51964dee9a26 (diff) | |
download | connman-29424a8223c0ffe82b1bfdbd35ed15b67dcf44eb.tar.gz connman-29424a8223c0ffe82b1bfdbd35ed15b67dcf44eb.tar.bz2 connman-29424a8223c0ffe82b1bfdbd35ed15b67dcf44eb.zip |
Add extra debug statement for when TLS encryption is used
Diffstat (limited to 'gweb')
-rw-r--r-- | gweb/gweb.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gweb/gweb.c b/gweb/gweb.c index f96d6b2b..dcd5be58 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -764,10 +764,13 @@ static int connect_session_transport(struct web_session *session) if (sk < 0) return -EIO; - if (session->flags & SESSION_FLAG_USE_TLS) + if (session->flags & SESSION_FLAG_USE_TLS) { + debug(session->web, "using TLS encryption"); session->transport_channel = g_io_channel_gnutls_new(sk); - else + } else { + debug(session->web, "no encryption"); session->transport_channel = g_io_channel_unix_new(sk); + } if (session->transport_channel == NULL) { close(sk); |