help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing a global callback method


From: Simon Josefsson
Subject: Re: Implementing a global callback method
Date: Tue, 17 Apr 2012 14:16:43 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux)

<address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]