diff options
Diffstat (limited to 'libsylph/ssl.c')
-rw-r--r-- | libsylph/ssl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsylph/ssl.c b/libsylph/ssl.c index 86c8d61a..4763a741 100644 --- a/libsylph/ssl.c +++ b/libsylph/ssl.c @@ -319,7 +319,9 @@ gboolean ssl_init_socket_with_method(SockInfo *sockinfo, SSLMethod method) } else { verify_result = X509_V_ERR_APPLICATION_VERIFICATION; } - } else if (verify_result == X509_V_ERR_CERT_HAS_EXPIRED) { + } + + if (verify_result == X509_V_ERR_CERT_HAS_EXPIRED) { log_message("SSL certificate of %s has expired\n", sockinfo->hostname); expired = TRUE; } else if (g_slist_find_custom(trust_list, server_cert, |