From: Nikos Mavrogiannopoulos Date: Wed, 12 Dec 2018 05:15:25 +0000 (+0100) Subject: doc: include PSK examples into documentation X-Git-Tag: gnutls_3_6_6~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbd6a98e657020b92cd16fcdd15388aa41eb61b3;p=thirdparty%2Fgnutls.git doc: include PSK examples into documentation Signed-off-by: Nikos Mavrogiannopoulos --- 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