libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 443486f69e4d0a45c1b7b253468a2d8bc43d9e8b
parent 6136f0adf6a5a2592dcbe3d9819f7790e89cac5d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 10 Sep 2011 05:30:02 +0000

use GNUTLS_SESSION instead of the un-implemented GNUTLS_CLIENT_CERT

Diffstat:
Mdoc/microhttpd.texi | 6+++---
Msrc/include/microhttpd.h | 5++++-
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/doc/microhttpd.texi b/doc/microhttpd.texi @@ -735,9 +735,9 @@ including access to the underlying GNUtls client certificate NULL is returned for non-HTTPS connections. @item MHD_CONNECTION_INFO_GNUTLS_CLIENT_CERT, -Takes no extra arguments. Allows access to the client certificate -including access to the underlying GNUtls client certificate -(HTTPS connections only). Takes no extra arguments. +Dysfunctional (never implemented, deprecated). Use +MHD_CONNECTION_INFO_GNUTLS_SESSION to get the @code{gnutls_session_t} +and then call @code{gnutls_certificate_get_peers()}. @item MHD_CONNECTION_INFO_DAEMON Returns information about @code{struct MHD_Daemon} which manages diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -729,7 +729,10 @@ enum MHD_ConnectionInfoType MHD_CONNECTION_INFO_GNUTLS_SESSION, /** - * Get the GNUTLS client certificate handle. + * Get the GNUTLS client certificate handle. Dysfunctional (never + * implemented, deprecated). Use MHD_CONNECTION_INFO_GNUTLS_SESSION + * to get the gnutls_session_t and then call + * gnutls_certificate_get_peers(). */ MHD_CONNECTION_INFO_GNUTLS_CLIENT_CERT,