Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Poprawna weryfikacja certyfikatu za pomocą GnuTLS.

  • Loading branch information...
commit 6516e57766b4fa39d1c5b37379ea72a330598a13 1 parent 10866fd
wojtekka authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/events.c
View
4 src/events.c
@@ -1113,8 +1113,8 @@ static gg_action_t gg_handle_tls_negotiation(struct gg_session *sess, struct gg_
res = gnutls_certificate_verify_peers2(GG_SESSION_GNUTLS(sess), &status);
- if (res != 0) {
- gg_debug_session(sess, GG_DEBUG_MISC, "//   WARNING! unable to verify peer certificate: %d, %s\n", res, gnutls_strerror(res));
+ if (res != 0 || status != 0) {
+ gg_debug_session(sess, GG_DEBUG_MISC, "//   WARNING! unable to verify peer certificate: 0x%x, %d, %s\n", status, res, gnutls_strerror(res));
if (sess->ssl_flag == GG_SSL_REQUIRED) {
e->event.failure = GG_FAILURE_TLS;
Please sign in to comment.
Something went wrong with that request. Please try again.