From fbaeed35ade33fd1c2db290c7a8cf3f8488e72a8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 23 Mar 2015 20:18:57 +0000 Subject: [PATCH] gnutls_certificate_set_x509_key_mem2 was actually introduced in 3.1 --- src/microhttpd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index dbe0cb58..39ea3e85 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -547,7 +547,7 @@ MHD_init_daemon_certificate (struct MHD_Daemon *daemon) cert.size = strlen (daemon->https_mem_cert); if (NULL != daemon->https_key_password) { -#if GNUTLS_VERSION_MAJOR >= 3 +#if GNUTLS_VERSION_NUMBER >= 0x030100 ret = gnutls_certificate_set_x509_key_mem2 (daemon->x509_cred, &cert, &key, GNUTLS_X509_FMT_PEM,