mainGnuTLS - Support: sr #107769, GnuTLS 2.12.7 problems on AIX

 
 

sr #107769: GnuTLS 2.12.7 problems on AIX

Submitter:  None
Submitted:  Tue 09 Aug 2011 07:53:53 AM UTC
   
 
Category:  Core library Priority:  5 - Normal
Severity:  3 - Normal Status:  Need Info
Privacy:  Public Assigned to:  nmav
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  *BSD
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Aug 2011 08:54:04 PM UTC, comment #1: 

I can understand the first issue (the AIX bug), but how can MAX_RECORD_SEND_SIZE be zero in this system?

If you have an AIX fix (i.e., with ifdefs) for the first issue I'd be interested incorporating it to gnutls. For the second issue (max_record_size being zero) it looks strange. Could you debug this and find out how it becomes zero? Normally this should have the default size of 16k which is set by gnutls_init().

Nikos Mavrogiannopoulos <nmav>
Group administrator
Tue 09 Aug 2011 07:53:53 AM UTC, original submission:  

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?




Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #23770:  gnutls_record-2.12.7.c added by None (36KiB - text/plain)
file #23766:  serverbeforefix.log added by None (24KiB - application/octet-stream)
file #23767:  client.log added by None (45KiB - application/octet-stream)
file #23768:  Server.log added by None (20KiB - application/octet-stream)
file #23769:  gnutls_buffers-2.12.7.c added by None (29KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nmav (Posted a comment)
  •  

    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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-28 nmav Open/ClosedOpen Closed
    2011-08-11 nmav StatusNone Need Info
        Assigned toNone nmav
    2011-08-09 None Attached File- Added gnutls_record-2.12.7.c, #23770
    2011-08-09 None Attached File- Added serverbeforefix.log, #23766
        Attached File- Added client.log, #23767
        Attached File- Added Server.log, #23768
        Attached File- Added gnutls_buffers-2.12.7.c, #23769

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code