[sr #107769] GnuTLS 2.12.7 problems on AIX

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


URL:
  <http://savannah.gnu.org/support/?107769>

                 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

    _______________________________________________________

Details:

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
2.12.7.

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 :

 if (sizeofdata > MAX_RECORD_SEND_SIZE && MAX_RECORD_SEND_SIZE>0)

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

<http://savannah.gnu.org/support/download.php?file_id=23766>
-------------------------------------------------------
Date: Tue 09 Aug 2011 07:53:53 UTC  Name: client.log  Size: 45kB   By: None

<http://savannah.gnu.org/support/download.php?file_id=23767>
-------------------------------------------------------
Date: Tue 09 Aug 2011 07:53:53 UTC  Name: Server.log  Size: 20kB   By: None

<http://savannah.gnu.org/support/download.php?file_id=23768>
-------------------------------------------------------
Date: Tue 09 Aug 2011 07:53:53 UTC  Name: gnutls_buffers-2.12.7.c  Size: 29kB 
 By: None

<http://savannah.gnu.org/support/download.php?file_id=23769>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/support/?107769>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





More information about the Gnutls-devel mailing list