diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-12-12 06:15:25 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-12-12 06:18:37 +0100 |
commit | dbd6a98e657020b92cd16fcdd15388aa41eb61b3 (patch) | |
tree | 8e4ade8cd062b26ea86fe3e1b89e2ddf0e5810b5 /doc | |
parent | 72014674a0d252b6196e72aa14fe913a72a4d00d (diff) | |
download | gnutls-dbd6a98e657020b92cd16fcdd15388aa41eb61b3.tar.gz |
doc: include PSK examples into documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/cha-gtls-examples.texi | 21 |
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 |