Implementing a global callback method

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


<Mallikarjun.Bailammanavar at infineon.com> 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/gnutls.h.in

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

3) mention the function in the symbol file lib/libgnutls.map.

4) write self tests

5) write documentation

See more in the manual:

https://www.gnu.org/software/gnutls/manual/html_node/TLS-Extension-Handling.html#Add-API-functions-to-enable_002fdisable-the-extension_002e

/Simon




More information about the Gnutls-help mailing list