summaryrefslogtreecommitdiff
path: root/doc/cha-gtls-examples.texi
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-29 22:31:25 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-29 22:31:25 +0100
commita56a814965209e4ae1b4f01ca1d4158a85de8d3e (patch)
tree706c18c400f540509e86d79a84d16e2b6638a5f2 /doc/cha-gtls-examples.texi
parent63101c139ac078959e8d720d1db2205b9353057f (diff)
downloadgnutls-a56a814965209e4ae1b4f01ca1d4158a85de8d3e.tar.gz
updated doc for XSSL
Diffstat (limited to 'doc/cha-gtls-examples.texi')
-rw-r--r--doc/cha-gtls-examples.texi24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/cha-gtls-examples.texi b/doc/cha-gtls-examples.texi
index d88e9bc05e..81c512e762 100644
--- a/doc/cha-gtls-examples.texi
+++ b/doc/cha-gtls-examples.texi
@@ -13,6 +13,7 @@ no error checking.
* Server examples::
* OCSP example::
* Miscellaneous examples::
+* XSSL examples::
@end menu
@node Client examples
@@ -279,3 +280,26 @@ This is a small program to list the enabled ciphersuites by a
priority string.
@verbatiminclude examples/print-ciphersuites.c
+
+@node XSSL examples
+@section XSSL examples
+
+XSSL is an experimental API available in the @code{gnutls-xssl} library
+and in @code{gnutls/xssl.h} header. It is intended to be a very simple
+to use API avoid the GnuTLS API.
+
+@menu
+* Example client with X.509 certificate authentication::
+* Example client with X.509 certificate authentication and TOFU::
+@end menu
+
+@node Example client with X.509 certificate authentication
+@subsection Example client with X.509 certificate authentication
+
+@verbatiminclude examples/ex-client-xssl1.c
+
+@node Example client with X.509 certificate authentication and TOFU
+@subsection Example client with X.509 certificate authentication and TOFU
+
+@verbatiminclude examples/ex-client-xssl2.c
+