]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
doc: include PSK examples into documentation
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 12 Dec 2018 05:15:25 +0000 (06:15 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 12 Dec 2018 05:18:37 +0000 (06:18 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
doc/cha-gtls-examples.texi

index bb8bca300496954ad28b8fe9c5b106e6c763a605..8a8675e02aa20c08db85e00cb8bd8c47bd9e308e 100644 (file)
@@ -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