bugWeeChat - Bugs: bug #22912, SSL connect issue with libgnutls...

 
 

bug #22912: SSL connect issue with libgnutls 2.2.2

Submitter:  None <wilysloth>
Submitted:  Mon 14 Apr 2008 01:08:02 PM UTC
   
 
Category:  irc plugin Severity:  3 - Normal
Item Group:  other Status:  Fixed
Privacy:  Public Assigned to:  flashcode
Originator Name:  Open/Closed:  Closed
Release:  * 0.2.6 IRC nick: 
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 14 Jun 2009 01:47:47 PM UTC, comment #1: 

This bug is probably fixed in devel version (future 0.3.0). If you still have bug in devel version, please tell me, I'll open this bug again.

Sebastien Helleu <flashcode>
Group administrator
Mon 14 Apr 2008 01:08:02 PM UTC, original submission:  

I am trying to connect via SSL to a private IRC server. BitchX works fine. weechat 2.6 with libgnutls 1.6.3 works fine. weechat 2.6 (compiled from same source) with libgnutls 2.2.2 does not.

[12:08:34] -=- WeeChat: connecting to server irc.wibble.org:994 (SSL)...
[12:08:34] =!= WeeChat Error: gnutls handshake failed
[12:08:34] -=- WeeChat: Reconnecting to server in 30 seconds

$ ldd `which weechat-curses`
        libdl.so.2 => /lib/libdl.so.2 (0x40025000)
        libncursesw.so.5 => /lib/libncursesw.so.5 (0x40030000)
        libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x4006b000)
        libc.so.6 => /lib/libc.so.6 (0x400e8000)
        /lib/ld-linux.so.2 (0x40000000)
        libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x4020f000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x40224000)
        libz.so.1 => /usr/lib/libz.so.1 (0x4022f000)
        libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x4024d000)

$ ldd `which gnutls-cli`
        libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x40025000)
        libgnutls-extra.so.26 => /usr/lib/libgnutls-extra.so.26 (0x400a2000)
        libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x400b4000)
        libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x400c9000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x40136000)
        libc.so.6 => /lib/libc.so.6 (0x40141000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40268000)
        libopencdk.so.10 => /usr/lib/libopencdk.so.10 (0x40286000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x402ac000)
        /lib/ld-linux.so.2 (0x40000000)

$ gnutls-cli --version
gnutls-cli (GnuTLS) 2.2.2

$ gnutls-cli -p 994 irc.wibble.org
Resolving 'irc.wibble.org'...
Connecting to 'XX.XX.XX.XX:994'...
- Ephemeral DH using prime of 520 bits, secret key of 502 bits, and peer's public key is 512 bits.
- Certificate type: X.509
 - Got a certificate list of 1 certificates.

 - Certificate[0] info:
 # The hostname in the certificate matches 'irc.wibble.org'.
 # valid since: Thu Jul 26 20:38:05 BST 2007
 # expires at: Wed May 26 14:09:49 BST 1971
 # fingerprint: 29:AE:68:43:E4:1E:06:AF:19:35:93:76:8E:5A:4B:BA
 # Subject's DN: C=UK,ST=Under The Bonfire,O=Wibble,CN=irc.wibble.org
 # Issuer's DN: O=Wibble,EMAIL=root@wibble.org,L=WibbleHQ,ST=Under The Bonfire,C=UK


- Peer's certificate issuer is unknown
- Peer's certificate is NOT trusted
- Version: TLS1.0
- Key Exchange: DHE-RSA
- Cipher: AES-128-CBC
- MAC: SHA1
- Compression: NULL
- Handshake was completed

- Simple Client Mode:

NOTICE AUTH :*** Looking up your hostname...
NOTICE AUTH :*** Found your hostname, welcome back
NOTICE AUTH :*** Checking ident
NOTICE AUTH :*** No identd (auth) response

gnutls-cli seems to handshake okay (despite a strange looking expiry date). Any ideas why weechat might be having trouble when using the same library?

None <wilysloth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Posted a comment)
  • -email is unavailable- added by wilysloth (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-09-06 flashcode Open/ClosedOpen Closed
    2009-06-14 flashcode Categoryother irc plugin
        StatusNone Fixed
        Assigned toNone flashcode

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code