summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/cha-gtls-examples.texi21
1 files changed, 21 insertions, 0 deletions
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