Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix expired certificate validation (gobby #61)
  • Loading branch information
aburgm committed May 12, 2015
1 parent 3be2995 commit c97f870
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libinfgtk/inf-gtk-certificate-manager.c
Expand Up @@ -709,9 +709,11 @@ inf_gtk_certificate_manager_certificate_func(InfXmppConnection* connection,

if(ret != GNUTLS_E_SUCCESS)
inf_gnutls_set_error(&error, ret);
else if(verify & GNUTLS_CERT_INVALID)
inf_gnutls_certificate_verification_set_error(&error, verify);
}

if(error == NULL)
if(verify & GNUTLS_CERT_INVALID)
inf_gnutls_certificate_verification_set_error(&error, verify);
}

/* Look up the host in our database of pinned certificates if we could not
Expand Down

0 comments on commit c97f870

Please sign in to comment.