gnutls extension

Nikos Mavrogiannopoulos nmav at gnutls.org
Tue Nov 30 18:13:27 CET 2010


On 11/29/2010 11:11 PM, Sumon Islam wrote:
> Hi,
> I would like to extend the gnutls, I followed all steps (point 1 to 4) as the 
> link specified 
> (http://www.gnu.org/software/gnutls/devel/manual/gnutls.html#TLS-Extension-Handling).
>  I made simple ext_foobar.c and ext_foobar.h ( I avoided the API steps of point 
> 5 at the first time for simplicity), attached below. 

You only need to do the configure stuff only if you plan to disable your
extension... Do you really need it? Just avoid the ifdef and if parts.

> I downloaded the client 
> (http://www.gnu.org/software/gnutls/manual/html_node/Simple-client-example-with-anonymous-authentication.html#Simple-client-example-with-anonymous-authentication)
>  and server 
> (http://www.gnu.org/software/gnutls/manual/html_node/Echo-Server-with-anonymous-authentication.html#Echo-Server-with-anonymous-authentication)
>  and run the unmodified version.  Do I need to change anything in the client and 
> server program to initiate the extension? 

No you shouldn't. For simple examples on extensions check
ext_server_name and ext_max_record.

regards,
Nikos




More information about the Gnutls-help mailing list