[sr #107769] GnuTLS 2.12.7 problems on AIX

anonymous INVALID.NOREPLY at gnu.org
Tue Aug 9 09:53:54 CEST 2011


                 Summary: GnuTLS 2.12.7 problems on AIX 
                 Project: GnuTLS
            Submitted by: None
            Submitted on: Tue 09 Aug 2011 07:53:53 UTC
                Category: Core library
                Priority: 5 - Normal
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: cybear
             Open/Closed: Open
         Discussion Lock: Any
        Operating System: *BSD



I have build my application on linux and a crosscompiled version for windows
and they are working but on AIX I can not connection client to server.

Somthing goes wrong during negotiation. 

I am running the sockets in non-blocking mode, and that causes some problems,
I have made a hack for that in version 2.10.1 and added the hack to 2.12.7.
AIX read returns -1 but no error code and in that case I return GNUTLS_E_AGAIN
from _gnutls_read. That worked in 2.10.1 and brings me further in version

The next problem occures in line 410 of gnutls_record.c

if (sizeofdata > MAX_RECORD_SEND_SIZE) 

where MAX_RECORD_SEND_SIZE point to a member of the session structure and have
the value 0. (see behaviour in attached log file serverbeforefix.log)

I have fixed the line to :


Which is definently not correct but brings me forward. It seems like the whole
session have been cleaned up.

I have attached logfile from the client and server with the output from the
negotiations, and the gnutls_buffers.c and gnutls_record.c that I have used to
create these log files.  Changed lines are marked by "bhc"

On the client AIX OS also issues a warning to the console Warning: using
insecure memory!"

I have build my gnutls library on gnutls 2.12.7 with the included libtans1 and
libgcrypt 1.4.6 and libgpg-error 1.8.

Any suggestion on where and what to look for?


File Attachments:

Date: Tue 09 Aug 2011 07:53:53 UTC  Name: serverbeforefix.log  Size: 24kB  
By: None

Date: Tue 09 Aug 2011 07:53:53 UTC  Name: client.log  Size: 45kB   By: None

Date: Tue 09 Aug 2011 07:53:53 UTC  Name: Server.log  Size: 20kB   By: None

Date: Tue 09 Aug 2011 07:53:53 UTC  Name: gnutls_buffers-2.12.7.c  Size: 29kB 
 By: None



Reply to this item at:


  Message sent via/by Savannah

More information about the Gnutls-devel mailing list