mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-01 04:03:18 +03:00
-fixing #2443: tutorial was unclear
This commit is contained in:
1 parent
aa8f99d22e
commit
faabde7649
2 files changed
+6
-3
No files matched your search
@@ -157,8 +157,11 @@ obtain the raw GnuTLS session handle from @emph{MHD} using
|
||||
#include <gnutls/x509.h>
|
||||
|
||||
gnutls_session_t tls_session;
|
||||
tls_session = MHD_get_connection_info (connection,
|
||||
MHD_CONNECTION_INFO_GNUTLS_SESSION);
|
||||
union MHD_ConnectionInfo *ci;
|
||||
|
||||
ci = MHD_get_connection_info (connection,
|
||||
MHD_CONNECTION_INFO_GNUTLS_SESSION);
|
||||
tls_session = ci->tls_session;
|
||||
@end verbatim
|
||||
|
||||
You can then extract the client certificate:
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#define SERVERCERTFILE "server.pem"
|
||||
|
||||
|
||||
char *
|
||||
static char *
|
||||
string_to_base64 (const char *message)
|
||||
{
|
||||
const char *lookup =
|
||||
|
||||
Reference in new issue
Block a user