Libgadu commit list | 16 Jun 19:19 2013

r1338 - trunk/src

Author: wojtekka
Date: 2013-06-16 19:19:40 +0200 (Sun, 16 Jun 2013)
New Revision: 1338

Modified:
   trunk/src/events.c
Log:
Poprawna weryfikacja certyfikatu za pomocą GnuTLS.

Modified: trunk/src/events.c
===================================================================
--- trunk/src/events.c	2013-06-16 17:03:03 UTC (rev 1337)
+++ trunk/src/events.c	2013-06-16 17:19:40 UTC (rev 1338)
 <at>  <at>  -1113,8 +1113,8  <at>  <at> 

 	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;

_______________________________________________
libgadu-commit mailing list
libgadu-commit <at> lists.ziew.org
(Continue reading)

Libgadu commit list | 16 Jun 19:03 2013

r1337 - trunk/test/automatic/script

Author: wojtekka
Date: 2013-06-16 19:03:03 +0200 (Sun, 16 Jun 2013)
New Revision: 1337

Modified:
   trunk/test/automatic/script/00-login.scr
   trunk/test/automatic/script/10-contacts.scr
   trunk/test/automatic/script/30-status.scr
Log:
Poprawki scenariuszy testowych do nowej wersji protokołu.

Modified: trunk/test/automatic/script/00-login.scr
===================================================================
--- trunk/test/automatic/script/00-login.scr	2013-06-16 17:02:46 UTC (rev 1336)
+++ trunk/test/automatic/script/00-login.scr	2013-06-16 17:03:03 UTC (rev 1337)
 <at>  <at>  -4,7 +4,7  <at>  <at> 
 login (uin = 1, password = "")
 expect connect
 send (01 00 00 00, auto, 12 34 56 78)
-expect data (31 00 00 00, auto, xx*139)
+expect data (83 00 00 00, auto, xx*185)
 send (03 00 00 00, auto)
 expect event GG_EVENT_CONN_SUCCESS
 logoff
 <at>  <at>  -17,7 +17,7  <at>  <at> 
 login (uin = 1, password = "")
 expect connect
 send (01 00 00 00, auto, 12 34 56 78)
-expect data (31 00 00 00, auto, xx*139)
+expect data (83 00 00 00, auto, xx*185)
(Continue reading)

Libgadu commit list | 16 Jun 19:02 2013

r1336 - trunk/test/automatic

Author: wojtekka
Date: 2013-06-16 19:02:46 +0200 (Sun, 16 Jun 2013)
New Revision: 1336

Modified:
   trunk/test/automatic/connect.c
Log:
Odkąd biblioteka weryfikuje certyfikaty ciężko testować z self-signed.

Modified: trunk/test/automatic/connect.c
===================================================================
--- trunk/test/automatic/connect.c	2013-06-16 17:01:22 UTC (rev 1335)
+++ trunk/test/automatic/connect.c	2013-06-16 17:02:46 UTC (rev 1336)
 <at>  <at>  -361,7 +361,7  <at>  <at> 
 		glp.server_addr = inet_addr(HOST_LOCAL);

 	if (test->ssl_mode)
-		glp.tls = GG_SSL_REQUIRED;
+		glp.tls = GG_SSL_ENABLED;

 	while (read(timeout_pipe[0], &tmp, 1) != -1);

_______________________________________________
libgadu-commit mailing list
libgadu-commit <at> lists.ziew.org
http://lists.ziew.org/mailman/listinfo/libgadu-commit
Libgadu commit list | 16 Jun 19:01 2013

r1335 - trunk/src

Author: wojtekka
Date: 2013-06-16 19:01:22 +0200 (Sun, 16 Jun 2013)
New Revision: 1335

Modified:
   trunk/src/libgadu.c
Log:
Poprawka ograniczania długości opisu.

Modified: trunk/src/libgadu.c
===================================================================
--- trunk/src/libgadu.c	2013-06-16 16:58:25 UTC (rev 1334)
+++ trunk/src/libgadu.c	2013-06-16 17:01:22 UTC (rev 1335)
 <at>  <at>  -1048,6 +1048,7  <at>  <at> 
 	struct gg_new_status80 p;
 	char *gen_descr = NULL;
 	int descr_len = 0;
+	int descr_null_len = 0;
 	int res;

 	gg_debug_session(sess, GG_DEBUG_FUNCTION, "** gg_change_status_descr(%p, %d, \"%s\");\n", sess,
status, descr);
 <at>  <at>  -1088,12 +1089,13  <at>  <at> 

 	if (sess->protocol_version >= GG_PROTOCOL_110) {
 		p.flags = gg_fix32(0x00000014);
-		descr_len++; /* dodaj \0 na końcu */
+		descr_null_len = 1;
 	}

(Continue reading)

Libgadu commit list | 16 Jun 18:58 2013

r1334 - trunk/src

Author: wojtekka
Date: 2013-06-16 18:58:25 +0200 (Sun, 16 Jun 2013)
New Revision: 1334

Modified:
   trunk/src/events.c
Log:
Weryfikacja nazwy hosta w OpenSSL. Ignorujemy subjectAltname póki co.

Modified: trunk/src/events.c
===================================================================
--- trunk/src/events.c	2013-06-15 16:10:04 UTC (rev 1333)
+++ trunk/src/events.c	2013-06-16 16:58:25 UTC (rev 1334)
 <at>  <at>  -1038,9 +1038,10  <at>  <at> 

 static gg_action_t gg_handle_tls_negotiation(struct gg_session *sess, struct gg_event *e, enum
gg_state_t next_state, enum gg_state_t alt_state, enum gg_state_t alt2_state)
 {
+	int valid_hostname = 0;
+
 #ifdef GG_CONFIG_HAVE_GNUTLS
 	unsigned int status;
-	int valid_hostname = 0;
 	int res;

 	gg_debug_session(sess, GG_DEBUG_MISC, "// gg_watch_fd() GG_STATE_TLS_NEGOTIATION\n");
 <at>  <at>  -1110,15 +1111,6  <at>  <at> 
 		}
 	}

(Continue reading)

Libgadu commit list | 15 Jun 18:10 2013

r1333 - in trunk: . src

Author: wojtekka
Date: 2013-06-15 18:10:04 +0200 (Sat, 15 Jun 2013)
New Revision: 1333

Modified:
   trunk/configure.ac
   trunk/src/events.c
Log:
Weryfikacja certyfikatów SSL.

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2013-06-12 21:19:13 UTC (rev 1332)
+++ trunk/configure.ac	2013-06-15 16:10:04 UTC (rev 1333)
 <at>  <at>  -252,6 +252,47  <at>  <at> 
 fi

 dnl
+dnl  Sprawdzamy czy mamy używać systemowych certyfikatów
+dnl
+
+AC_ARG_ENABLE(ssl-system-trust,
+       	[  --disable-ssl-system-trust  disable the use of system default trusted CAs])
+
+AC_ARG_WITH([gnutls-system-trust-store],
+	[  --with-gnutls-system-trust-store=FILE  provide alternative path of system default trust store for
GnuTLS versions <= 3.x])
+
+if test "x$enable_ssl_system_trust" != "xno"; then
+	AC_DEFINE([GG_CONFIG_SSL_SYSTEM_TRUST], [], [Defined if libgadu uses system defalt trusted CAs])
(Continue reading)

Libgadu commit list | 12 Jun 23:19 2013

r1332 - trunk/src

Author: wojtekka
Date: 2013-06-12 23:19:13 +0200 (Wed, 12 Jun 2013)
New Revision: 1332

Modified:
   trunk/src/events.c
Log:
Dla GG_SSL_REQUIRED sprawdzamy certyfikat serwera z certyfikatami zainstalowanymi w systemie
(Radhesh Krishnan K., Bartosz Brachaczek)

Modified: trunk/src/events.c
===================================================================
--- trunk/src/events.c	2013-06-04 11:36:32 UTC (rev 1331)
+++ trunk/src/events.c	2013-06-12 21:19:13 UTC (rev 1332)
 <at>  <at>  -293,6 +293,7  <at>  <at> 
 		}

 		SSL_CTX_set_verify(gs->ssl_ctx, SSL_VERIFY_NONE, NULL);
+		SSL_CTX_set_default_verify_paths(gs->ssl_ctx);
 	}

 	if (gs->ssl != NULL)
 <at>  <at>  -1150,14 +1151,33  <at>  <at> 

 	if (peer == NULL) {
 		gg_debug_session(sess, GG_DEBUG_MISC, "//   WARNING! unable to get peer certificate!\n");
+
+		if (sess->ssl_flag == GG_SSL_REQUIRED) {
+			e->event.failure = GG_FAILURE_TLS;
+			return GG_ACTION_FAIL;
(Continue reading)

Libgadu commit list | 4 Jun 13:36 2013

r1331 - in trunk: . test/automatic test/manual

Author: beevvy
Date: 2013-06-04 13:36:32 +0200 (Tue, 04 Jun 2013)
New Revision: 1331

Modified:
   trunk/Makefile.am
   trunk/configure.ac
   trunk/test/automatic/Makefile.am
   trunk/test/manual/Makefile.am
Log:
Przerób skrypty automake na zgodne z automake 1.13

Wcześniej testy nie działały.

Modified: trunk/Makefile.am
===================================================================
--- trunk/Makefile.am	2013-06-04 11:35:57 UTC (rev 1330)
+++ trunk/Makefile.am	2013-06-04 11:36:32 UTC (rev 1331)
 <at>  <at>  -1,6 +1,10  <at>  <at> 
-SUBDIRS = include src pkgconfig test examples  <at> SUBDIRS_DOXYGEN <at> 
-DIST_SUBDIRS = include src pkgconfig test examples docs
+SUBDIRS = include src pkgconfig examples  <at> SUBDIRS_DOXYGEN <at> 
+if ENABLE_TESTS
+SUBDIRS += test
+endif

+DIST_SUBDIRS = include src pkgconfig examples docs test
+
 LIBTOOL_DEPS =  <at> LIBTOOL_DEPS <at> 

(Continue reading)

Libgadu commit list | 4 Jun 13:35 2013

r1330 - trunk

Author: beevvy
Date: 2013-06-04 13:35:57 +0200 (Tue, 04 Jun 2013)
New Revision: 1330

Modified:
   trunk/configure.ac
Log:
Popraw wykrywanie obsługi uint64_t

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2013-02-14 23:58:26 UTC (rev 1329)
+++ trunk/configure.ac	2013-06-04 11:35:57 UTC (rev 1330)
 <at>  <at>  -124,7 +124,7  <at>  <at> 
 AC_CHECK_FUNCS([_strtoui64])

 AC_MSG_CHECKING([if <$STDINT_H> has uint64_t])
-AC_TRY_COMPILE([#include <$STDINT_H>], [uint64_t_ foo],
+AC_TRY_COMPILE([#include <$STDINT_H>], [uint64_t foo],
     AC_DEFINE([GG_CONFIG_HAVE_UINT64_T], [], [Defined if this machine has uint64_t.])
     AC_MSG_RESULT([yes]),
     AC_MSG_RESULT([no]))

_______________________________________________
libgadu-commit mailing list
libgadu-commit <at> lists.ziew.org
http://lists.ziew.org/mailman/listinfo/libgadu-commit
Libgadu commit list | 15 Feb 00:58 2013

r1329 - in trunk: include src

Author: wojtekka
Date: 2013-02-15 00:58:26 +0100 (Fri, 15 Feb 2013)
New Revision: 1329

Modified:
   trunk/include/internal.h
   trunk/include/libgadu.h.in
   trunk/include/protocol.h
   trunk/src/common.c
   trunk/src/handlers.c
   trunk/src/libgadu.c
   trunk/src/tvbuilder.c
Log:
Dalsza część integracji http://hg.pidgin.im/cpw/tomkiewicz/gg11-libgadu (Tomasz Wasilczyk)

Modified: trunk/include/internal.h
===================================================================
--- trunk/include/internal.h	2013-01-30 22:14:59 UTC (rev 1328)
+++ trunk/include/internal.h	2013-02-14 23:58:26 UTC (rev 1329)
 <at>  <at>  -54,7 +54,6  <at>  <at> 
 struct gg_chat_list *gg_chat_find(struct gg_session *sess, uint64_t id);

 uin_t gg_str_to_uin(const char *str, int len);
-const char * gg_uin_to_str(uin_t uin);

 uint64_t gg_fix64(uint64_t x);

Modified: trunk/include/libgadu.h.in
===================================================================
--- trunk/include/libgadu.h.in	2013-01-30 22:14:59 UTC (rev 1328)
(Continue reading)

Libgadu commit list | 30 Jan 23:15 2013

r1328 - trunk/src

Author: wojtekka
Date: 2013-01-30 23:14:59 +0100 (Wed, 30 Jan 2013)
New Revision: 1328

Added:
   trunk/src/tvbuff.c
   trunk/src/tvbuilder.c
Modified:
   trunk/src/Makefile.am
   trunk/src/message.c
Log:
Kontynuacja integracji http://hg.pidgin.im/cpw/tomkiewicz/gg11-libgadu (Tomasz Wasilczyk)

Modified: trunk/src/Makefile.am
===================================================================
--- trunk/src/Makefile.am	2013-01-30 21:55:20 UTC (rev 1327)
+++ trunk/src/Makefile.am	2013-01-30 22:14:59 UTC (rev 1328)
 <at>  <at>  -1,5 +1,5  <at>  <at> 
 lib_LTLIBRARIES = libgadu.la
-libgadu_la_SOURCES = common.c dcc.c dcc7.c debug.c deflate.c encoding.c endian.c events.c
handlers.c http.c libgadu.c message.c network.c obsolete.c pubdir.c pubdir50.c resolver.c sha1.c
+libgadu_la_SOURCES = common.c dcc.c dcc7.c debug.c deflate.c encoding.c endian.c events.c
handlers.c http.c libgadu.c message.c network.c obsolete.c pubdir.c pubdir50.c resolver.c sha1.c
tvbuff.c tvbuilder.c
 libgadu_la_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -DGG_IGNORE_DEPRECATED
 libgadu_la_LDFLAGS = -version-number 3:13 -export-symbols $(srcdir)/libgadu.sym  <at> MINGW_LDFLAGS <at> 
 EXTRA_DIST = libgadu.sym

Modified: trunk/src/message.c
===================================================================
(Continue reading)


Gmane