From dbd6a98e657020b92cd16fcdd15388aa41eb61b3 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Wed, 12 Dec 2018 06:15:25 +0100 Subject: doc: include PSK examples into documentation Signed-off-by: Nikos Mavrogiannopoulos --- doc/cha-gtls-examples.texi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'doc') diff --git a/doc/cha-gtls-examples.texi b/doc/cha-gtls-examples.texi index bb8bca3004..8a8675e02a 100644 --- a/doc/cha-gtls-examples.texi +++ b/doc/cha-gtls-examples.texi @@ -137,9 +137,11 @@ This section has various, more advanced topics in client and servers. * Using a callback to select the certificate to use:: * Obtaining session information:: * Advanced certificate verification example:: +* Client example with PSK authentication:: * Client example with SRP authentication:: * Legacy client example with X.509 certificate support:: * Client example in C++:: +* Echo server with PSK authentication:: * Echo server with SRP authentication:: * Echo server with anonymous authentication:: * Helper functions for TCP connections:: @@ -195,6 +197,17 @@ and CRLs. @verbatiminclude examples/ex-verify.c + +@node Client example with PSK authentication +@subsection Client example with @acronym{PSK} authentication + +The following client is a very simple @acronym{PSK} @acronym{TLS} +client which connects to a server and authenticates using a +@emph{username} and a @emph{key}. + +@verbatiminclude examples/ex-client-psk.c + + @node Client example with SRP authentication @subsection Client example with @acronym{SRP} authentication @@ -225,6 +238,14 @@ the GnuTLS C++ API. @verbatiminclude examples/ex-cxx.cpp +@node Echo server with PSK authentication +@subsection Echo server with @acronym{PSK} authentication + +This is a server which supports @acronym{PSK} authentication. + +@verbatiminclude examples/ex-serv-psk.c + + @node Echo server with SRP authentication @subsection Echo server with @acronym{SRP} authentication -- cgit v1.2.1