Witam i mam nadzieję, że ktoś tu jeszcze żyje. :)

Otóż od jakiegoś czasu nie działa logowanie do GG po TLS.
System: Fedora 25
pidgin-2.11.0
libgadu-1.12.1

Oto log z pidgina (nr konta częściowo zaiksowany):
===
(15:08:20) account: Connecting to account 18xxxxx.
(15:08:20) connection: Connecting. gc = 0x5581a1847b80
(15:08:20) gg: Trying to retrieve address from gg appmsg service
(15:08:20) gg: ggp_to_gg_status: Requested status = available
(15:08:20) gg: Requested encryption type: opportunistic_tls
(15:08:20) gg: TLS enabled: 1
(15:08:20) gg: ** gg_login(0x5581a184a9c0: [uin=18xxxxx, async=1, ...]);
(15:08:20) gg: ** gg_watch_fd(0x5581a184a790);
(15:08:20) gg: // gg_watch_fd() GG_STATE_RESOLVE_HUB_ASYNC
(15:08:20) gg: ** gg_resolver_pthread_start(0x5581a184a790, 0x5581a184a848, 
"appmsg.gadu-gadu.pl");
(15:08:20) gg: // gg_resolver_pthread_start() 0x5581a17d0a20
(15:08:20) gg: ** gg_event_free(0x5581a18295e0);
(15:08:20) gg: login_handler: session: check = 2; state = 62;
(15:08:20) gg: unknown state = 62
(15:08:20) gg: ** gg_watch_fd(0x5581a184a790);
(15:08:20) gg: // gg_watch_fd() GG_STATE_RESOLVING_HUB
(15:08:20) gg: // gg_watch_fd() GG_STATE_CONNECT_HUB
(15:08:20) gg: // gg_watch_fd() connecting to 91.214.239.49:80
(15:08:20) gg: ** gg_connect(91.214.239.49, 80, 1);
(15:08:20) gg: // gg_connect() connect() in progress
(15:08:20) gg: login_handler: session->fd = 8
(15:08:20) gg: login_handler: session: check = 1; state = 5;
(15:08:20) gg: GG_EVENT_NONE
(15:08:20) gg: ** gg_event_free(0x5581a17f41d0);
(15:08:20) gg: login_handler: session: check = 1; state = 5;
(15:08:20) gg: GG_STATE_CONNECTING_HUB
(15:08:20) gg: ** gg_watch_fd(0x5581a184a790);
(15:08:20) gg: // gg_watch_fd() GG_STATE_CONNECTING_HUB
(15:08:20) gg: // gg_watch_fd() GG_STATE_SEND_HUB
(15:08:20) gg: // sending http query:
GET 
/appsvc/appmsg_ver10.asp?fmnumber=18xxxxx&fmt=2&lastmsg=0&version=11.3.45.10771&age=2&gender=1
 HTTP/1.0
Connection: close
Host: appmsg.gadu-gadu.pl

(15:08:20) gg: login_handler: session->fd = 8
(15:08:20) gg: login_handler: session: check = 2; state = 71;
(15:08:20) gg: GG_EVENT_NONE
(15:08:20) gg: ** gg_event_free(0x5581a1829800);
(15:08:20) gg: login_handler: session: check = 2; state = 71;
(15:08:20) gg: unknown state = 71
(15:08:20) gg: ** gg_watch_fd(0x5581a184a790);
(15:08:20) gg: // gg_watch_fd() GG_STATE_READING_HUB
(15:08:20) gg: login_handler: session->fd = 8
(15:08:20) gg: login_handler: session: check = 2; state = 71;
(15:08:20) gg: GG_EVENT_NONE
(15:08:20) gg: ** gg_event_free(0x5581a0d9ac00);
(15:08:20) gg: login_handler: session: check = 2; state = 71;
(15:08:20) gg: unknown state = 71
(15:08:20) gg: ** gg_watch_fd(0x5581a184a790);
(15:08:20) gg: // gg_watch_fd() GG_STATE_READING_HUB
(15:08:20) gg: // received http reply:
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 31 Jan 2017 14:08:20 GMT
Connection: close

26713 0 91.214.237.48:8074 91.214.237.48
(15:08:20) gg: reply=26713, host="91.214.237.48:8074"
(15:08:20) gg: // gg_watch_fd() GG_STATE_RESOLVE_GG_ASYNC
(15:08:20) gg: ** gg_resolver_pthread_start(0x5581a184a790, 0x5581a184a848, 
"91.214.237.48");
(15:08:20) gg: // gg_resolver_pthread_start() 0x5581a184e2b0
(15:08:20) gg: login_handler: session->fd = 8
(15:08:20) gg: login_handler: session: check = 2; state = 43;
(15:08:20) gg: System message:

(15:08:20) gg: ** gg_event_free(0x5581a1829800);
(15:08:20) gg: login_handler: session: check = 2; state = 43;
(15:08:20) gg: GG_STATE_RESOLVING_GG
(15:08:20) gg: ** gg_watch_fd(0x5581a184a790);
(15:08:20) gg: // gg_watch_fd() GG_STATE_RESOLVING_GG
(15:08:20) gg: // gg_watch_fd() GG_STATE_CONNECT_GG
(15:08:20) gg: resolver_index=0, connect_index=0, connect_port={8074,443}
(15:08:20) gg: // gg_watch_fd() connecting to 91.214.237.48:8074
(15:08:20) gg: ** gg_connect(91.214.237.48, 8074, 1);
(15:08:20) gg: // gg_connect() connect() in progress
(15:08:20) gg: login_handler: session->fd = 8
(15:08:20) gg: login_handler: session: check = 1; state = 6;
(15:08:20) gg: GG_EVENT_NONE
(15:08:20) gg: ** gg_event_free(0x5581a178c6e0);
(15:08:20) gg: login_handler: session: check = 1; state = 6;
(15:08:20) gg: GG_STATE_CONNECTING_GG
(15:08:20) gg: ** gg_watch_fd(0x5581a184a790);
(15:08:20) gg: // gg_watch_fd() GG_STATE_CONNECTING_GG
(15:08:20) gg: // gg_watch_fd() connected
(15:08:20) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:08:20) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:08:20) gg: // gg_watch_fd() TLS handshake error: -15, An unexpected TLS 
packet was received.
(15:08:20) gg: login_handler: session->fd = -1
(15:08:20) gg: login_handler: session: check = 1; state = 0;
(15:08:20) GLib: Source ID 1227 was not found when attempting to remove it
(15:08:20) connection: Connection error on 0x5581a1847b80 (reason: 0 
description: Connection failed)
(15:08:20) gg: ** gg_event_free(0x5581a178c7f0);
(15:08:20) account: Disconnecting account 18xxxxx (0x5581a0d70580)
(15:08:20) connection: Disconnecting connection 0x5581a1847b80
(15:08:20) gg: ggp_to_gg_status: Requested status = available
(15:08:20) gg: ** gg_change_status(0x5581a184a790, 2);
(15:08:20) gg: ** gg_change_status_descr(0x5581a184a790, 2, "(null)");
(15:08:20) gg: ** gg_logoff(0x5581a184a790);
(15:08:20) gg: ** gg_free_session(0x5581a184a790);
(15:08:20) gg: Connection closed.
(15:08:20) connection: Destroying connection 0x5581a1847b80
(15:08:25) util: Writing file prefs.xml to directory /home/rathann/.purple
(15:08:25) util: Writing file /home/rathann/.purple/prefs.xml
(15:08:25) util: Writing file accounts.xml to directory /home/rathann/.purple
(15:08:25) util: Writing file /home/rathann/.purple/accounts.xml
(15:08:39) autorecon: do_signon called
(15:08:39) autorecon: calling purple_account_connect
(15:08:39) account: Connecting to account 18xxxxx.
(15:08:39) connection: Connecting. gc = 0x5581a1e62d60
(15:08:39) gg: Trying to retrieve address from gg appmsg service
(15:08:39) gg: ggp_to_gg_status: Requested status = available
(15:08:39) gg: Requested encryption type: opportunistic_tls
(15:08:39) gg: TLS enabled: 1
(15:08:39) gg: ** gg_login(0x5581a1a79540: [uin=18xxxxx, async=1, ...]);
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_RESOLVE_HUB_ASYNC
(15:08:39) gg: ** gg_resolver_pthread_start(0x5581a1e81d90, 0x5581a1e81e48, 
"appmsg.gadu-gadu.pl");
(15:08:39) gg: // gg_resolver_pthread_start() 0x5581a199a430
(15:08:39) gg: ** gg_event_free(0x5581a1922360);
(15:08:39) autorecon: done calling purple_account_connect
(15:08:39) gg: login_handler: session: check = 2; state = 62;
(15:08:39) gg: unknown state = 62
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_RESOLVING_HUB
(15:08:39) gg: // gg_watch_fd() GG_STATE_CONNECT_HUB
(15:08:39) gg: // gg_watch_fd() connecting to 91.214.239.48:80
(15:08:39) gg: ** gg_connect(91.214.239.48, 80, 1);
(15:08:39) gg: // gg_connect() connect() in progress
(15:08:39) gg: login_handler: session->fd = 8
(15:08:39) gg: login_handler: session: check = 1; state = 5;
(15:08:39) gg: GG_EVENT_NONE
(15:08:39) gg: ** gg_event_free(0x5581a1a455e0);
(15:08:39) gg: login_handler: session: check = 1; state = 5;
(15:08:39) gg: GG_STATE_CONNECTING_HUB
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_CONNECTING_HUB
(15:08:39) gg: // gg_watch_fd() GG_STATE_SEND_HUB
(15:08:39) gg: // sending http query:
GET 
/appsvc/appmsg_ver10.asp?fmnumber=18xxxxx&fmt=2&lastmsg=0&version=11.3.45.10771&age=2&gender=1
 HTTP/1.0
Connection: close
Host: appmsg.gadu-gadu.pl

(15:08:39) gg: login_handler: session->fd = 8
(15:08:39) gg: login_handler: session: check = 2; state = 71;
(15:08:39) gg: GG_EVENT_NONE
(15:08:39) gg: ** gg_event_free(0x5581a1a455e0);
(15:08:39) gg: login_handler: session: check = 2; state = 71;
(15:08:39) gg: unknown state = 71
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_READING_HUB
(15:08:39) gg: login_handler: session->fd = 8
(15:08:39) gg: login_handler: session: check = 2; state = 71;
(15:08:39) gg: GG_EVENT_NONE
(15:08:39) gg: ** gg_event_free(0x5581a1c0cbb0);
(15:08:39) gg: login_handler: session: check = 2; state = 71;
(15:08:39) gg: unknown state = 71
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_READING_HUB
(15:08:39) gg: // received http reply:
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 31 Jan 2017 14:08:39 GMT
Connection: close

26713 0 91.214.237.15:8074 91.214.237.15
(15:08:39) gg: reply=26713, host="91.214.237.15:8074"
(15:08:39) gg: // gg_watch_fd() GG_STATE_RESOLVE_GG_ASYNC
(15:08:39) gg: ** gg_resolver_pthread_start(0x5581a1e81d90, 0x5581a1e81e48, 
"91.214.237.15");
(15:08:39) gg: // gg_resolver_pthread_start() 0x5581a1dc19b0
(15:08:39) gg: login_handler: session->fd = 8
(15:08:39) gg: login_handler: session: check = 2; state = 43;
(15:08:39) gg: System message:

(15:08:39) gg: ** gg_event_free(0x5581a132b0c0);
(15:08:39) gg: login_handler: session: check = 2; state = 43;
(15:08:39) gg: GG_STATE_RESOLVING_GG
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_RESOLVING_GG
(15:08:39) gg: // gg_watch_fd() GG_STATE_CONNECT_GG
(15:08:39) gg: resolver_index=0, connect_index=0, connect_port={8074,443}
(15:08:39) gg: // gg_watch_fd() connecting to 91.214.237.15:8074
(15:08:39) gg: ** gg_connect(91.214.237.15, 8074, 1);
(15:08:39) gg: // gg_connect() connect() in progress
(15:08:39) gg: login_handler: session->fd = 8
(15:08:39) gg: login_handler: session: check = 1; state = 6;
(15:08:39) gg: GG_EVENT_NONE
(15:08:39) gg: ** gg_event_free(0x5581a1dace00);
(15:08:39) gg: login_handler: session: check = 1; state = 6;
(15:08:39) gg: GG_STATE_CONNECTING_GG
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_CONNECTING_GG
(15:08:39) gg: // gg_watch_fd() connected
(15:08:39) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:08:39) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:08:39) gg: // gg_watch_fd() TLS handshake GNUTLS_E_AGAIN
(15:08:39) gg: login_handler: session->fd = 8
(15:08:39) gg: login_handler: session: check = 2; state = 37;
(15:08:39) gg: GG_EVENT_NONE
(15:08:39) gg: ** gg_event_free(0x5581a1c9a820);
(15:08:39) gg: login_handler: session: check = 2; state = 37;
(15:08:39) gg: GG_STATE_TLS_NEGOTIATION
(15:08:39) gg: ** gg_watch_fd(0x5581a1e81d90);
(15:08:39) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:08:39) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:08:39) gg: // gg_watch_fd() TLS handshake error: -15, An unexpected TLS 
packet was received.
(15:08:39) gg: login_handler: session->fd = -1
(15:08:39) gg: login_handler: session: check = 2; state = 0;
(15:08:39) GLib: Source ID 1263 was not found when attempting to remove it
(15:08:39) connection: Connection error on 0x5581a1e62d60 (reason: 0 
description: Connection failed)
(15:08:39) gg: ** gg_event_free(0x5581a178c7f0);
(15:08:39) account: Disconnecting account 18xxxxx (0x5581a0d70580)
(15:08:39) connection: Disconnecting connection 0x5581a1e62d60
(15:08:39) gg: ggp_to_gg_status: Requested status = available
(15:08:39) gg: ** gg_change_status(0x5581a1e81d90, 2);
(15:08:39) gg: ** gg_change_status_descr(0x5581a1e81d90, 2, "(null)");
(15:08:39) gg: ** gg_logoff(0x5581a1e81d90);
(15:08:39) gg: ** gg_free_session(0x5581a1e81d90);
(15:08:39) gg: Connection closed.
(15:08:39) connection: Destroying connection 0x5581a1e62d60
(15:08:44) util: Writing file accounts.xml to directory /home/rathann/.purple
(15:08:44) util: Writing file /home/rathann/.purple/accounts.xml
(15:09:16) autorecon: do_signon called
(15:09:16) autorecon: calling purple_account_connect
(15:09:16) account: Connecting to account 18xxxxx.
(15:09:16) connection: Connecting. gc = 0x5581a1ab5b40
(15:09:16) gg: Trying to retrieve address from gg appmsg service
(15:09:16) gg: ggp_to_gg_status: Requested status = available
(15:09:16) gg: Requested encryption type: opportunistic_tls
(15:09:16) gg: TLS enabled: 1
(15:09:16) gg: ** gg_login(0x5581a1bc5980: [uin=18xxxxx, async=1, ...]);
(15:09:16) gg: ** gg_watch_fd(0x5581a1b8db60);
(15:09:16) gg: // gg_watch_fd() GG_STATE_RESOLVE_HUB_ASYNC
(15:09:16) gg: ** gg_resolver_pthread_start(0x5581a1b8db60, 0x5581a1b8dc18, 
"appmsg.gadu-gadu.pl");
(15:09:16) gg: // gg_resolver_pthread_start() 0x5581a0d753a0
(15:09:16) gg: ** gg_event_free(0x5581a17ef010);
(15:09:16) autorecon: done calling purple_account_connect
(15:09:16) gg: login_handler: session: check = 2; state = 62;
(15:09:16) gg: unknown state = 62
(15:09:16) gg: ** gg_watch_fd(0x5581a1b8db60);
(15:09:16) gg: // gg_watch_fd() GG_STATE_RESOLVING_HUB
(15:09:16) gg: // gg_watch_fd() GG_STATE_CONNECT_HUB
(15:09:16) gg: // gg_watch_fd() connecting to 91.214.239.48:80
(15:09:16) gg: ** gg_connect(91.214.239.48, 80, 1);
(15:09:16) gg: // gg_connect() connect() in progress
(15:09:16) gg: login_handler: session->fd = 8
(15:09:16) gg: login_handler: session: check = 1; state = 5;
(15:09:16) gg: GG_EVENT_NONE
(15:09:16) gg: ** gg_event_free(0x5581a1b88e40);
(15:09:16) gg: login_handler: session: check = 1; state = 5;
(15:09:16) gg: GG_STATE_CONNECTING_HUB
(15:09:16) gg: ** gg_watch_fd(0x5581a1b8db60);
(15:09:16) gg: // gg_watch_fd() GG_STATE_CONNECTING_HUB
(15:09:16) gg: // gg_watch_fd() GG_STATE_SEND_HUB
(15:09:16) gg: // sending http query:
GET 
/appsvc/appmsg_ver10.asp?fmnumber=18xxxxx&fmt=2&lastmsg=0&version=11.3.45.10771&age=2&gender=1
 HTTP/1.0
Connection: close
Host: appmsg.gadu-gadu.pl

(15:09:16) gg: login_handler: session->fd = 8
(15:09:16) gg: login_handler: session: check = 2; state = 71;
(15:09:16) gg: GG_EVENT_NONE
(15:09:16) gg: ** gg_event_free(0x5581a1b88e40);
(15:09:16) gg: login_handler: session: check = 2; state = 71;
(15:09:16) gg: unknown state = 71
(15:09:16) gg: ** gg_watch_fd(0x5581a1b8db60);
(15:09:16) gg: // gg_watch_fd() GG_STATE_READING_HUB
(15:09:16) gg: login_handler: session->fd = 8
(15:09:16) gg: login_handler: session: check = 2; state = 71;
(15:09:16) gg: GG_EVENT_NONE
(15:09:16) gg: ** gg_event_free(0x5581a1990630);
(15:09:16) gg: login_handler: session: check = 2; state = 71;
(15:09:16) gg: unknown state = 71
(15:09:16) gg: ** gg_watch_fd(0x5581a1b8db60);
(15:09:16) gg: // gg_watch_fd() GG_STATE_READING_HUB
(15:09:16) gg: // received http reply:
HTTP/1.1 200 OK
Server: nginx
Date: Tue, 31 Jan 2017 14:09:16 GMT
Connection: close

26713 0 91.214.237.50:8074 91.214.237.50
(15:09:16) gg: reply=26713, host="91.214.237.50:8074"
(15:09:16) gg: // gg_watch_fd() GG_STATE_RESOLVE_GG_ASYNC
(15:09:16) gg: ** gg_resolver_pthread_start(0x5581a1b8db60, 0x5581a1b8dc18, 
"91.214.237.50");
(15:09:16) gg: // gg_resolver_pthread_start() 0x5581a2027900
(15:09:16) gg: login_handler: session->fd = 8
(15:09:16) gg: login_handler: session: check = 2; state = 43;
(15:09:16) gg: System message:

(15:09:16) gg: ** gg_event_free(0x5581a1a55e60);
(15:09:16) gg: login_handler: session: check = 2; state = 43;
(15:09:16) gg: GG_STATE_RESOLVING_GG
(15:09:16) gg: ** gg_watch_fd(0x5581a1b8db60);
(15:09:16) gg: // gg_watch_fd() GG_STATE_RESOLVING_GG
(15:09:16) gg: // gg_watch_fd() GG_STATE_CONNECT_GG
(15:09:16) gg: resolver_index=0, connect_index=0, connect_port={8074,443}
(15:09:16) gg: // gg_watch_fd() connecting to 91.214.237.50:8074
(15:09:16) gg: ** gg_connect(91.214.237.50, 8074, 1);
(15:09:16) gg: // gg_connect() connect() in progress
(15:09:16) gg: login_handler: session->fd = 8
(15:09:16) gg: login_handler: session: check = 1; state = 6;
(15:09:16) gg: GG_EVENT_NONE
(15:09:16) gg: ** gg_event_free(0x5581a0d83be0);
(15:09:16) gg: login_handler: session: check = 1; state = 6;
(15:09:16) gg: GG_STATE_CONNECTING_GG
(15:09:16) gg: ** gg_watch_fd(0x5581a1b8db60);
(15:09:16) gg: // gg_watch_fd() GG_STATE_CONNECTING_GG
(15:09:16) gg: // gg_watch_fd() connected
(15:09:16) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:09:16) gg: // gg_watch_fd() GG_STATE_TLS_NEGOTIATION
(15:09:16) gg: // gg_watch_fd() TLS handshake error: -15, An unexpected TLS 
packet was received.
(15:09:16) gg: login_handler: session->fd = -1
(15:09:16) gg: login_handler: session: check = 1; state = 0;
(15:09:16) GLib: Source ID 1281 was not found when attempting to remove it
(15:09:16) connection: Connection error on 0x5581a1ab5b40 (reason: 0 
description: Connection failed)
(15:09:16) gg: ** gg_event_free(0x5581a17ef010);
(15:09:16) account: Disconnecting account 18xxxxx (0x5581a0d70580)
(15:09:16) connection: Disconnecting connection 0x5581a1ab5b40
(15:09:16) gg: ggp_to_gg_status: Requested status = available
(15:09:16) gg: ** gg_change_status(0x5581a1b8db60, 2);
(15:09:16) gg: ** gg_change_status_descr(0x5581a1b8db60, 2, "(null)");
(15:09:16) gg: ** gg_logoff(0x5581a1b8db60);
(15:09:16) gg: ** gg_free_session(0x5581a1b8db60);
(15:09:16) gg: Connection closed.
(15:09:16) connection: Destroying connection 0x5581a1ab5b40
===

Jakieś pomysły? Próba ręcznego połączenia przy pomocy OpenSSL wygląda
tak:
$ echo | openssl s_client -showcerts -connect 91.214.237.48:8074
CONNECTED(00000003)
140566761006968:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown 
protocol:s23_clnt.c:794:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 201 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    Key-Arg   : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1485872136
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---

Logowanie bez TLS działa, ale z oczywistych względów nie jest zalecane.

Pozdrawiam,
Dominik
-- 
Fedora http://fedoraproject.org/wiki/User:Rathann
RPMFusion http://rpmfusion.org
"Faith manages."
        -- Delenn to Lennier in Babylon 5:"Confessions and Lamentations"
_______________________________________________
libgadu-devel mailing list
libgadu-devel@lists.ziew.org
http://lists.ziew.org/mailman/listinfo/libgadu-devel

Reply via email to