summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-16 20:56:03 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-06-17 10:24:01 +0200
commitb8363aba7f43c40af91c20aa0aba0c5e3c8506af (patch)
tree545cf77a710625a339075132cab0010a5184b7c9
parentc315d80395b3507c7e7e1cf5bfa821ed0c434980 (diff)
downloadgnutls-b8363aba7f43c40af91c20aa0aba0c5e3c8506af.tar.gz
doc: Correct comment about ignoring certs in the SRP server example
Point readers to another example for a way to validate certificates in both the SRP and the X.509 server example Signed-off-by: Attila Molnar <attilamolnar@hush.com>
-rw-r--r--doc/examples/ex-serv-srp.c5
-rw-r--r--doc/examples/ex-serv-x509.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/examples/ex-serv-srp.c b/doc/examples/ex-serv-srp.c
index e2417654e1..9f1f58a2e3 100644
--- a/doc/examples/ex-serv-srp.c
+++ b/doc/examples/ex-serv-srp.c
@@ -99,7 +99,10 @@ int main(void)
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE,
cert_cred);
- /* request client certificate if any.
+ /* We don't request any certificate from the client.
+ * If we did we would need to verify it. One way of
+ * doing that is shown in the "Verifying a certificate"
+ * example.
*/
gnutls_certificate_server_set_request(session,
GNUTLS_CERT_IGNORE);
diff --git a/doc/examples/ex-serv-x509.c b/doc/examples/ex-serv-x509.c
index bc5b371877..5380d606a4 100644
--- a/doc/examples/ex-serv-x509.c
+++ b/doc/examples/ex-serv-x509.c
@@ -125,8 +125,11 @@ int main(void)
gnutls_priority_set(session, priority_cache);
gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE,
x509_cred);
+
/* We don't request any certificate from the client.
- * If we did we would need to verify it.
+ * If we did we would need to verify it. One way of
+ * doing that is shown in the "Verifying a certificate"
+ * example.
*/
gnutls_certificate_server_set_request(session,
GNUTLS_CERT_IGNORE);