[evolution-data-server] [ESourceWebdav] Use Unknown instead of Reject result on runtime errors



commit 8f3cc29a5128cd54ffeb4ac7fc208d1abaee5dfe
Author: Milan Crha <mcrha redhat com>
Date:   Thu May 21 12:03:39 2015 +0200

    [ESourceWebdav] Use Unknown instead of Reject result on runtime errors
    
    That way it's indicated to the caller that it was not able to recognize
    whether the trust prompt was set by the user to reject or anything else,
    thus it can eventually stop trying to connect the ESource.

 libedataserver/e-source-webdav.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libedataserver/e-source-webdav.c b/libedataserver/e-source-webdav.c
index 3a95bf9..dfc87bb 100644
--- a/libedataserver/e-source-webdav.c
+++ b/libedataserver/e-source-webdav.c
@@ -1350,9 +1350,9 @@ e_source_webdav_verify_ssl_trust (ESourceWebdav *extension,
        gchar *old_host = NULL;
        gchar *old_hash = NULL;
 
-       g_return_val_if_fail (E_IS_SOURCE_WEBDAV (extension), E_TRUST_PROMPT_RESPONSE_REJECT);
-       g_return_val_if_fail (host != NULL, E_TRUST_PROMPT_RESPONSE_REJECT);
-       g_return_val_if_fail (cert != NULL, E_TRUST_PROMPT_RESPONSE_REJECT);
+       g_return_val_if_fail (E_IS_SOURCE_WEBDAV (extension), E_TRUST_PROMPT_RESPONSE_UNKNOWN);
+       g_return_val_if_fail (host != NULL, E_TRUST_PROMPT_RESPONSE_UNKNOWN);
+       g_return_val_if_fail (cert != NULL, E_TRUST_PROMPT_RESPONSE_UNKNOWN);
 
        /* Always reject revoked certificates */
        if ((cert_errors & G_TLS_CERTIFICATE_REVOKED) != 0)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]