manpagez: man pages & more
info gnutls
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.4 TLS Extension Handling

As with authentication methods, the TLS extensions handlers can be implemented using the interface shown in fig:gnutls-ext.

gnutls-extensions_st

Figure 9.6: GnuTLS extensions structure.

Here there are two functions, one for receiving the extension data and one for sending. These functions have to check internally whether they operate in client or server side.

A simple example of an extension handler can be seen in ext_srp.c After implementing these functions, together with the extension number they handle, they have to be registered in gnutls_extensions.c in the _gnutls_extensions structure.


© manpagez.com 2000-2025
Individual documents may contain additional copyright information.