Implementing a global callback method

Simon Josefsson simon at
Tue Apr 17 14:16:43 CEST 2012

<Mallikarjun.Bailammanavar at> writes:

> Hallo, 
> I would like to implement one global callback method in GNU-TLS, which
> should be linked and exported via the DLL.
> I want to implement a method something similar to
> "gnutls_global_set_log_function".
> How can I achieve the same? 
> Can some one please help. 

1) Add the prototype to the appropriate header file,
e.g. lib/includes/gnutls/

2) Write the code in some existing .c file under lib/, or add a new .c
file under lib/ and add it in the

3) mention the function in the symbol file lib/

4) write self tests

5) write documentation

See more in the manual:


More information about the Gnutls-help mailing list