mainGnuTLS - Support: sr #108623, gnutls for Windows port.

 
 

sr #108623: gnutls for Windows port.

Submitter:  Bjørn Christensen <cybear>
Submitted:  Wed 30 Jul 2014 01:14:01 PM UTC
   
 
Category:  Core library Priority:  5 - Normal
Severity:  3 - Normal Status:  Done
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 31 Jul 2014 10:20:08 AM UTC, comment #1: 

Unfortunately changing the symbol to a function would require an ABI bump. Would a patch like the following address your issue?

https://gitorious.org/gnutls/gnutls/commit/8e4df216fee26e346a46817d4af64d85a21e40f6

Nikos Mavrogiannopoulos <nmav>
Group administrator
Wed 30 Jul 2014 01:14:01 PM UTC, original submission:  

The declaration of the gnutls memory function casuses problems.

It is all the memory function but I will try and describe the problem with gnutls_free.

gnutls_free is declared as follows:
typedef void (gnutls_free_function) (void );
extern gnutls_free_function gnutls_free;

when cross-compiled and made to a windows .lib file _fnutls_free is not found in the library because the declaration misses a __declspec(dllimport).

typedef void (gnutls_free_function) (void );
extern __declspec(dllimport) gnutls_free_function gnutls_free;

this is one solution but since the headers is platform independant right now, a better solution could be to convert the gnutls_free to a real function and have a placeholder for the gnutls_free_function_pointer that it could call.
void gnutls_free(void *p)
{
   (*gnutls_free_function_pointer)(p);
}

all the function calls in the gnutls library is ok since for functions the __declspec(dllimport) is implicit.


Bjørn Christensen <cybear>

 

(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 nmav (Posted a comment)
  • -email is unavailable- added by cybear (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-20 nmav StatusNone Done
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code