[glib-networking] gnutls: Add a missing enum value to a switch statement
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] gnutls: Add a missing enum value to a switch statement
- Date: Tue, 23 Sep 2014 06:54:30 +0000 (UTC)
commit f3b252c4981de66a887e4cec9ec4bfa96e651dbb
Author: Philip Withnall <philip withnall collabora co uk>
Date: Wed Sep 17 13:06:30 2014 +0100
gnutls: Add a missing enum value to a switch statement
And a missing default case. This introduces no functional changes.
https://bugzilla.gnome.org/show_bug.cgi?id=736809
tls/gnutls/gtlsconnection-gnutls.c | 1 +
tls/gnutls/gtlsserverconnection-gnutls.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 472f2d8..7dfeeec 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -1670,6 +1670,7 @@ on_pin_prompt_callback (const char *pinfile,
pin = NULL;
break;
case G_TLS_INTERACTION_UNHANDLED:
+ default:
pin = NULL;
break;
case G_TLS_INTERACTION_HANDLED:
diff --git a/tls/gnutls/gtlsserverconnection-gnutls.c b/tls/gnutls/gtlsserverconnection-gnutls.c
index 566b922..11afb71 100644
--- a/tls/gnutls/gtlsserverconnection-gnutls.c
+++ b/tls/gnutls/gtlsserverconnection-gnutls.c
@@ -178,6 +178,7 @@ g_tls_server_connection_gnutls_begin_handshake (GTlsConnectionGnutls *conn)
case G_TLS_AUTHENTICATION_REQUIRED:
req_mode = GNUTLS_CERT_REQUIRE;
break;
+ case G_TLS_AUTHENTICATION_NONE:
default:
req_mode = GNUTLS_CERT_IGNORE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]