gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: improve example on client cert va


From: gnunet
Subject: [libmicrohttpd] branch master updated: improve example on client cert validation, as suggested by Folkert van Heusden
Date: Tue, 02 Mar 2021 15:42:13 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new b5c7519d improve example on client cert validation, as suggested by 
Folkert van Heusden
b5c7519d is described below

commit b5c7519d9a4449ffe9fadb6ba30f5295752bb97b
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Mar 2 15:40:49 2021 +0100

    improve example on client cert validation, as suggested by Folkert van 
Heusden
---
 doc/chapters/tlsauthentication.inc | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/doc/chapters/tlsauthentication.inc 
b/doc/chapters/tlsauthentication.inc
index ebde69a8..90984feb 100644
--- a/doc/chapters/tlsauthentication.inc
+++ b/doc/chapters/tlsauthentication.inc
@@ -187,6 +187,13 @@ get_client_certificate (gnutls_session_t tls_session)
   if (gnutls_certificate_verify_peers2(tls_session,
                                       &client_cert_status))
     return NULL;
+  if (0 != client_cert_status)
+  {
+    fprintf (stderr,
+            "Failed client certificate invalid: %d\n",
+            client_cert_status);
+    return NULL;
+  }
   pcert = gnutls_certificate_get_peers(tls_session,
                                       &listsize);
   if ( (pcert == NULL) ||

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]