aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/tlsauthentication.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/tlsauthentication.c')
-rw-r--r--doc/examples/tlsauthentication.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
index 906d97b5..7d6e66f5 100644
--- a/doc/examples/tlsauthentication.c
+++ b/doc/examples/tlsauthentication.c
@@ -113,7 +113,8 @@ ask_for_authentication (struct MHD_Connection *connection, const char *realm)
113 char *headervalue; 113 char *headervalue;
114 const char *strbase = "Basic realm="; 114 const char *strbase = "Basic realm=";
115 115
116 response = MHD_create_response_from_data (0, NULL, MHD_NO, MHD_NO); 116 response = MHD_create_response_from_buffer (0, NULL,
117 MHD_RESPMEM_PERSISTENT);
117 if (!response) 118 if (!response)
118 return MHD_NO; 119 return MHD_NO;
119 120
@@ -186,8 +187,8 @@ secret_page (struct MHD_Connection *connection)
186 const char *page = "<html><body>A secret.</body></html>"; 187 const char *page = "<html><body>A secret.</body></html>";
187 188
188 response = 189 response =
189 MHD_create_response_from_data (strlen (page), (void *) page, MHD_NO, 190 MHD_create_response_from_buffer (strlen (page), (void *) page,
190 MHD_NO); 191 MHD_RESPMEM_PERSISTENT);
191 if (!response) 192 if (!response)
192 return MHD_NO; 193 return MHD_NO;
193 194