diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2015-08-03 18:25:17 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-08-05 11:50:47 +0200 |
commit | 3b99d65841bc842a5c9625e75edaa8f5c4e7b877 (patch) | |
tree | a6b90b3293066a68f69563633d4fd7fd82262054 | |
parent | 45d013913710110efd19f86fd2e54d38adc1a8d4 (diff) |
channel: Don't warn when no CA is set
Since v0.22~19 "Use system-wide trust certificate store", when neither
SpiceSession::ca-file nor SpiceSession::ca are set, the system-wide
CA store will be used to validate the SPICE certificates.
However, there is still a g_warn_if_fail() checking that either ca or
ca-file are set, which causes a runtime warning when trying to use the
system-wide store. This commit removes it.
-rw-r--r-- | src/spice-channel.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/spice-channel.c b/src/spice-channel.c index c67e0aa..e254b41 100644 --- a/src/spice-channel.c +++ b/src/spice-channel.c @@ -2242,7 +2242,6 @@ static int spice_channel_load_ca(SpiceChannel *channel) spice_session_get_ca(c->session, &ca, &size); CHANNEL_DEBUG(channel, "Load CA, file: %s, data: %p", ca_file, ca); - g_warn_if_fail(ca_file || ca); if (ca != NULL) { in = BIO_new_mem_buf(ca, size); |