aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-07-20 20:42:21 +0000
committerChristian Grothoff <christian@grothoff.org>2008-07-20 20:42:21 +0000
commit075c3c42032e2e279987d21fb646c4f8302e1f93 (patch)
treecf7d7fc8f7e426f717440ed781e9f9f3d0f896c6 /src
parent5ed0d3c8717e714c605ebd00c91ab53b7fdc01a6 (diff)
downloadlibmicrohttpd-075c3c42032e2e279987d21fb646c4f8302e1f93.tar.gz
libmicrohttpd-075c3c42032e2e279987d21fb646c4f8302e1f93.zip
fixing z/OS build issues
Diffstat (limited to 'src')
-rw-r--r--src/daemon/Makefile.am24
-rw-r--r--src/daemon/connection.h3
-rw-r--r--src/daemon/daemon.c7
-rw-r--r--src/daemon/https/Makefile.am4
-rw-r--r--src/daemon/internal.h27
-rw-r--r--src/daemon/memorypool.c9
-rw-r--r--src/examples/authorization_example.c8
-rw-r--r--src/examples/fileserver_example.c8
-rw-r--r--src/examples/fileserver_example_external_select.c8
-rw-r--r--src/examples/https_server_example.c8
-rw-r--r--src/examples/minimal_example.c8
-rw-r--r--src/examples/querystring_example.c8
-rw-r--r--src/include/Makefile.am2
-rw-r--r--src/include/microhttpd.h24
-rw-r--r--src/include/microhttpsd.h10
-rw-r--r--src/include/plibc.h (renamed from src/daemon/plibc.h)6
16 files changed, 60 insertions, 104 deletions
diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
index d850723b..5dcf875b 100644
--- a/src/daemon/Makefile.am
+++ b/src/daemon/Makefile.am
@@ -1,3 +1,5 @@
1SUBDIRS = .
2
1AM_CPPFLAGS = \ 3AM_CPPFLAGS = \
2-I$(top_srcdir)/src/include \ 4-I$(top_srcdir)/src/include \
3-I$(top_srcdir)/src/daemon \ 5-I$(top_srcdir)/src/daemon \
@@ -20,33 +22,31 @@ EXTRA_DIST = SYMBOLS
20lib_LTLIBRARIES = \ 22lib_LTLIBRARIES = \
21 libmicrohttpd.la 23 libmicrohttpd.la
22 24
23SUBDIRS =
24libmicrohttpd_la_LIBADD =
25
26libmicrohttpd_la_SOURCES = \ 25libmicrohttpd_la_SOURCES = \
27connection.c connection.h \ 26connection.c connection.h \
28reason_phrase.c reason_phrase.h \ 27reason_phrase.c reason_phrase.h \
29daemon.c \ 28daemon.c \
30internal.c internal.h \ 29internal.c internal.h \
31memorypool.c memorypool.h \ 30memorypool.c memorypool.h \
32plibc.h \
33postprocessor.c \ 31postprocessor.c \
34response.c response.h 32response.c response.h
35libmicrohttpd_la_LDFLAGS = \ 33libmicrohttpd_la_LDFLAGS = \
36 -export-dynamic -version-info 4:3:0 $(retaincommand) 34 -export-dynamic -version-info 4:3:0 $(retaincommand)
37 35
36
38if ENABLE_HTTPS 37if ENABLE_HTTPS
39SUBDIRS += https . 38SUBDIRS += https .
40libmicrohttpd_la_SOURCES += connection_https.c 39libmicrohttpd_la_SOURCES += connection_https.c
41libmicrohttpd_la_LIBADD += \ 40libmicrohttpd_la_LIBADD = \
42https/x509/libx509.la \ 41 https/x509/libx509.la \
43https/lgl/liblgl.la \ 42 https/lgl/liblgl.la \
44https/tls/libtls.la \ 43 https/tls/libtls.la \
45https/minitasn1/libasn1.la \ 44 https/minitasn1/libasn1.la \
46https/opencdk/libopencdk.la \ 45 https/opencdk/libopencdk.la \
47https/openpgp/libopenpgp.la 46 https/openpgp/libopenpgp.la
48endif 47endif
49 48
49
50check_PROGRAMS = \ 50check_PROGRAMS = \
51 postprocessor_test \ 51 postprocessor_test \
52 postprocessor_large_test \ 52 postprocessor_large_test \
diff --git a/src/daemon/connection.h b/src/daemon/connection.h
index bf78f390..29887d65 100644
--- a/src/daemon/connection.h
+++ b/src/daemon/connection.h
@@ -27,7 +27,7 @@
27#ifndef CONNECTION_H 27#ifndef CONNECTION_H
28#define CONNECTION_H 28#define CONNECTION_H
29 29
30#include "config.h" 30#include "internal.h"
31 31
32/** 32/**
33 * Obtain the select sets for this connection. 33 * Obtain the select sets for this connection.
@@ -41,6 +41,7 @@ MHD_connection_get_fdset (struct MHD_Connection *connection,
41 fd_set * except_fd_set, int *max_fd); 41 fd_set * except_fd_set, int *max_fd);
42 42
43void MHD_set_http_calbacks (struct MHD_Connection *connection); 43void MHD_set_http_calbacks (struct MHD_Connection *connection);
44
44#if HTTPS_SUPPORT 45#if HTTPS_SUPPORT
45void MHD_set_https_calbacks (struct MHD_Connection *connection); 46void MHD_set_https_calbacks (struct MHD_Connection *connection);
46#endif 47#endif
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index d6f3bc9c..965db0a6 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -30,7 +30,6 @@
30#include "memorypool.h" 30#include "memorypool.h"
31 31
32#if HTTPS_SUPPORT 32#if HTTPS_SUPPORT
33#include "gnutls.h"
34#include "gnutls_int.h" 33#include "gnutls_int.h"
35#include "gnutls_global.h" 34#include "gnutls_global.h"
36#endif 35#endif
@@ -106,9 +105,9 @@ MHDS_init (struct MHD_Daemon *daemon)
106 } 105 }
107 else if (daemon->https_mem_cert && daemon->https_mem_key) 106 else if (daemon->https_mem_cert && daemon->https_mem_key)
108 { 107 {
109 key.data = daemon->https_mem_key; 108 key.data = (char*) daemon->https_mem_key;
110 key.size = strlen (daemon->https_mem_key); 109 key.size = strlen (daemon->https_mem_key);
111 cert.data = daemon->https_mem_cert; 110 cert.data = (char*) daemon->https_mem_cert;
112 cert.size = strlen (daemon->https_mem_cert); 111 cert.size = strlen (daemon->https_mem_cert);
113 112
114 gnutls_certificate_set_x509_key_mem (daemon->x509_cret, &cert, &key, 113 gnutls_certificate_set_x509_key_mem (daemon->x509_cret, &cert, &key,
@@ -701,7 +700,7 @@ MHD_select (struct MHD_Daemon *daemon, int may_block)
701 ds = pos->socket_fd; 700 ds = pos->socket_fd;
702 if (ds != -1) 701 if (ds != -1)
703 { 702 {
704 // TODO call con->read handler 703 /* TODO call con->read handler */
705 if (FD_ISSET (ds, &rs)) 704 if (FD_ISSET (ds, &rs))
706 pos->read_handler (pos); 705 pos->read_handler (pos);
707 if ((pos->socket_fd != -1) && (FD_ISSET (ds, &ws))) 706 if ((pos->socket_fd != -1) && (FD_ISSET (ds, &ws)))
diff --git a/src/daemon/https/Makefile.am b/src/daemon/https/Makefile.am
index 9ebb2043..bf9dbb1c 100644
--- a/src/daemon/https/Makefile.am
+++ b/src/daemon/https/Makefile.am
@@ -4,7 +4,7 @@ SUBDIRS = minitasn1 lgl x509 tls
4if ENABLE_OPENPGP 4if ENABLE_OPENPGP
5SUBDIRS += opencdk openpgp 5SUBDIRS += opencdk openpgp
6endif 6endif
7 7
8#noinst_PROGRAMS = errcodes 8#noinst_PROGRAMS = errcodes
9#errcodes_SOURCES = errcodes.c 9#errcodes_SOURCES = errcodes.c
10#errcodes_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS) 10#errcodes_LDADD = ../lib/libgnutls.la $(LIBGCRYPT_LIBS) $(LIBTASN1_LIBS)
@@ -15,3 +15,5 @@ endif
15# tls_test.c tests.h tests.c common.h common.c 15# tls_test.c tests.h tests.c common.h common.c
16# certtool_SOURCES = certtool.gaa certtool-gaa.h certtool-cfg.h \ 16# certtool_SOURCES = certtool.gaa certtool-gaa.h certtool-cfg.h \
17# certtool-gaa.c certtool.c prime.c certtool-cfg.c 17# certtool-gaa.c certtool.c prime.c certtool-cfg.c
18
19EXTRA_DIST = gnutls.h
diff --git a/src/daemon/internal.h b/src/daemon/internal.h
index 4de5c6dd..0f1c39bd 100644
--- a/src/daemon/internal.h
+++ b/src/daemon/internal.h
@@ -27,30 +27,13 @@
27#ifndef INTERNAL_H 27#ifndef INTERNAL_H
28#define INTERNAL_H 28#define INTERNAL_H
29 29
30#include <stdio.h> 30#include "platform.h"
31#include <stdlib.h>
32#include <string.h>
33#include <unistd.h>
34#include <stdarg.h>
35#include <errno.h>
36#include <fcntl.h>
37#include <signal.h>
38#include <pthread.h>
39
40#include "config.h"
41#include "plibc.h"
42#include "microhttpd.h" 31#include "microhttpd.h"
43 32#if HTTPS_SUPPORT
44#include "gnutls.h" 33#include "gnutls.h"
45
46#ifndef MINGW
47#include <sys/mman.h>
48#include <netdb.h>
49#include <netinet/in.h>
50#endif 34#endif
51 35
52 36
53
54#define MHD_MAX(a,b) ((a)<(b)) ? (b) : (a) 37#define MHD_MAX(a,b) ((a)<(b)) ? (b) : (a)
55#define MHD_MIN(a,b) ((a)<(b)) ? (a) : (b) 38#define MHD_MIN(a,b) ((a)<(b)) ? (a) : (b)
56 39
@@ -484,9 +467,7 @@ struct MHD_Connection
484 */ 467 */
485 enum MHD_CONNECTION_STATE state; 468 enum MHD_CONNECTION_STATE state;
486 469
487 //enum MHDS_CONNECTION_STATE s_state; 470 /**
488
489 /**
490 * HTTP response code. Only valid if response object 471 * HTTP response code. Only valid if response object
491 * is already set. 472 * is already set.
492 */ 473 */
@@ -550,7 +531,7 @@ struct MHD_Connection
550#endif 531#endif
551}; 532};
552 533
553struct MHD_Daemon 534 n struct MHD_Daemon
554{ 535{
555 536
556 /** 537 /**
diff --git a/src/daemon/memorypool.c b/src/daemon/memorypool.c
index e58cab38..2e566fd8 100644
--- a/src/daemon/memorypool.c
+++ b/src/daemon/memorypool.c
@@ -22,13 +22,16 @@
22 * @brief memory pool 22 * @brief memory pool
23 * @author Christian Grothoff 23 * @author Christian Grothoff
24 */ 24 */
25
26#include "memorypool.h" 25#include "memorypool.h"
27 26
28/* define MAP_ANONYMOUS for Mac OS X */ 27/* define MAP_ANONYMOUS for Mac OS X */
29#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS) 28#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
30#define MAP_ANONYMOUS MAP_ANON 29#define MAP_ANONYMOUS MAP_ANON
31#endif 30#endif
31#ifndef MAP_FAILED
32#define MAP_FAILED ((void*)-1)
33#endif
34
32 35
33struct MemoryPool 36struct MemoryPool
34{ 37{
@@ -72,8 +75,12 @@ MHD_pool_create (unsigned int max)
72 pool = malloc (sizeof (struct MemoryPool)); 75 pool = malloc (sizeof (struct MemoryPool));
73 if (pool == NULL) 76 if (pool == NULL)
74 return NULL; 77 return NULL;
78#ifdef MAP_ANONYMOUS
75 pool->memory = MMAP (NULL, max, PROT_READ | PROT_WRITE, 79 pool->memory = MMAP (NULL, max, PROT_READ | PROT_WRITE,
76 MAP_ANONYMOUS, -1, 0); 80 MAP_ANONYMOUS, -1, 0);
81#else
82 pool->memory = MAP_FAILED;
83#endif
77 if ((pool->memory == MAP_FAILED) || (pool->memory == NULL)) 84 if ((pool->memory == MAP_FAILED) || (pool->memory == NULL))
78 { 85 {
79 pool->memory = malloc (max); 86 pool->memory = malloc (max);
diff --git a/src/examples/authorization_example.c b/src/examples/authorization_example.c
index 9c7185e5..8d661f25 100644
--- a/src/examples/authorization_example.c
+++ b/src/examples/authorization_example.c
@@ -23,14 +23,8 @@
23 * @author Christian Grothoff 23 * @author Christian Grothoff
24 */ 24 */
25 25
26#include "config.h" 26#include "platform.h"
27#include <microhttpd.h> 27#include <microhttpd.h>
28#include <stdlib.h>
29#ifndef MINGW
30#include <unistd.h>
31#endif
32#include <string.h>
33#include <stdio.h>
34 28
35#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd demo</body></html>" 29#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd demo</body></html>"
36 30
diff --git a/src/examples/fileserver_example.c b/src/examples/fileserver_example.c
index 139b606d..21e58d1f 100644
--- a/src/examples/fileserver_example.c
+++ b/src/examples/fileserver_example.c
@@ -23,16 +23,10 @@
23 * @author Christian Grothoff 23 * @author Christian Grothoff
24 */ 24 */
25 25
26#include "config.h" 26#include "platform.h"
27#include <microhttpd.h> 27#include <microhttpd.h>
28#include <stdlib.h>
29#include <sys/types.h>
30#include <sys/stat.h> 28#include <sys/stat.h>
31#ifndef MINGW
32#include <unistd.h> 29#include <unistd.h>
33#endif
34#include <string.h>
35#include <stdio.h>
36 30
37#define PAGE "<html><head><title>File not found</title></head><body>File not found</body></html>" 31#define PAGE "<html><head><title>File not found</title></head><body>File not found</body></html>"
38 32
diff --git a/src/examples/fileserver_example_external_select.c b/src/examples/fileserver_example_external_select.c
index b4bdc91e..e3762abf 100644
--- a/src/examples/fileserver_example_external_select.c
+++ b/src/examples/fileserver_example_external_select.c
@@ -22,16 +22,10 @@
22 * @author Christian Grothoff 22 * @author Christian Grothoff
23 */ 23 */
24 24
25#include "config.h" 25#include "platform.h"
26#include <microhttpd.h> 26#include <microhttpd.h>
27#include <stdlib.h>
28#include <sys/types.h>
29#include <sys/stat.h> 27#include <sys/stat.h>
30#ifndef MINGW
31#include <unistd.h> 28#include <unistd.h>
32#endif
33#include <string.h>
34#include <stdio.h>
35 29
36#define PAGE "<html><head><title>File not found</title></head><body>File not found</body></html>" 30#define PAGE "<html><head><title>File not found</title></head><body>File not found</body></html>"
37 31
diff --git a/src/examples/https_server_example.c b/src/examples/https_server_example.c
index 0763f36d..126b29d3 100644
--- a/src/examples/https_server_example.c
+++ b/src/examples/https_server_example.c
@@ -34,16 +34,10 @@
34 * @author Sagie Amir 34 * @author Sagie Amir
35 */ 35 */
36 36
37#include "config.h" 37#include "platform.h"
38#include <microhttpsd.h> 38#include <microhttpsd.h>
39#include <sys/stat.h> 39#include <sys/stat.h>
40 40
41#include <stdlib.h>
42#ifndef MINGW
43#include <unistd.h>
44#endif
45#include <string.h>
46#include <stdio.h>
47#include "gnutls.h" 41#include "gnutls.h"
48#include <gcrypt.h> 42#include <gcrypt.h>
49 43
diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c
index 4bbbd94e..c65b4f89 100644
--- a/src/examples/minimal_example.c
+++ b/src/examples/minimal_example.c
@@ -22,14 +22,8 @@
22 * @author Christian Grothoff 22 * @author Christian Grothoff
23 */ 23 */
24 24
25#include "config.h" 25#include "platform.h"
26#include <microhttpd.h> 26#include <microhttpd.h>
27#include <stdlib.h>
28#ifndef MINGW
29#include <unistd.h>
30#endif
31#include <string.h>
32#include <stdio.h>
33 27
34#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd demo</body></html>" 28#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>libmicrohttpd demo</body></html>"
35 29
diff --git a/src/examples/querystring_example.c b/src/examples/querystring_example.c
index 1e48c2ce..d3b53693 100644
--- a/src/examples/querystring_example.c
+++ b/src/examples/querystring_example.c
@@ -23,14 +23,8 @@
23 * @author Christian Grothoff 23 * @author Christian Grothoff
24 */ 24 */
25 25
26#include "config.h" 26#include "platform.h"
27#include <microhttpd.h> 27#include <microhttpd.h>
28#include <stdlib.h>
29#ifndef MINGW
30#include <unistd.h>
31#endif
32#include <string.h>
33#include <stdio.h>
34 28
35#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>Query string for &quot;%s&quot; was &quot;%s&quot;</body></html>" 29#define PAGE "<html><head><title>libmicrohttpd demo</title></head><body>Query string for &quot;%s&quot; was &quot;%s&quot;</body></html>"
36 30
diff --git a/src/include/Makefile.am b/src/include/Makefile.am
index c01b7979..f76fe3b0 100644
--- a/src/include/Makefile.am
+++ b/src/include/Makefile.am
@@ -1,2 +1,4 @@
1SUBDIRS = . 1SUBDIRS = .
2include_HEADERS = microhttpd.h 2include_HEADERS = microhttpd.h
3
4EXTRA_DIST = platform.h plibc.h
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 0e0f21b9..4351fbb2 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -58,6 +58,12 @@
58 * All functions are guaranteed to be completely reentrant and 58 * All functions are guaranteed to be completely reentrant and
59 * thread-safe.<p> 59 * thread-safe.<p>
60 * 60 *
61 * NEW: Before including "microhttpd.h" you should add the
62 * necessary includes to define the "size_t", "fd_set", "socklen_t" and
63 * "struct sockaddr" data types (which headers are needed may
64 * depend on your platform; for possible suggestions consult
65 * "platform.h" in the MHD distribution).
66 *
61 * TODO: 67 * TODO:
62 * - Add option codes for SSL support 68 * - Add option codes for SSL support
63 */ 69 */
@@ -65,14 +71,6 @@
65#ifndef MHD_MICROHTTPD_H 71#ifndef MHD_MICROHTTPD_H
66#define MHD_MICROHTTPD_H 72#define MHD_MICROHTTPD_H
67 73
68#include <sys/types.h>
69#ifndef MINGW
70#include <sys/select.h>
71#include <sys/socket.h>
72#else
73#include "plibc.h"
74#endif
75
76#ifdef __cplusplus 74#ifdef __cplusplus
77extern "C" 75extern "C"
78{ 76{
@@ -84,7 +82,7 @@ extern "C"
84/** 82/**
85 * Current version of the library. 83 * Current version of the library.
86 */ 84 */
87#define MHD_VERSION 0x00030000 85#define MHD_VERSION 0x00040000
88 86
89/** 87/**
90 * MHD-internal return codes. 88 * MHD-internal return codes.
@@ -283,7 +281,7 @@ enum MHD_FLAG
283 * recommended to turn this ON if you are testing clients against 281 * recommended to turn this ON if you are testing clients against
284 * MHD, and OFF in production. 282 * MHD, and OFF in production.
285 */ 283 */
286 MHD_USE_PEDANTIC_CHECKS = 32, 284 MHD_USE_PEDANTIC_CHECKS = 32
287 285
288}; 286};
289 287
@@ -410,7 +408,7 @@ enum MHD_OPTION
410 */ 408 */
411 MHD_OPTION_TLS_COMP_ALGO, 409 MHD_OPTION_TLS_COMP_ALGO,
412 410
413 MHD_HTTPS_OPTION_END, 411 MHD_HTTPS_OPTION_END
414}; 412};
415 413
416/** 414/**
@@ -454,7 +452,7 @@ enum MHD_ValueKind
454 /** 452 /**
455 * HTTP footer (only for http 1.1 chunked encodings). 453 * HTTP footer (only for http 1.1 chunked encodings).
456 */ 454 */
457 MHD_FOOTER_KIND = 16, 455 MHD_FOOTER_KIND = 16
458 456
459}; 457};
460 458
@@ -488,7 +486,7 @@ enum MHD_RequestTerminationCode
488 * We had to close the session since MHD was being 486 * We had to close the session since MHD was being
489 * shut down. 487 * shut down.
490 */ 488 */
491 MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN = 3, 489 MHD_REQUEST_TERMINATED_DAEMON_SHUTDOWN = 3
492 490
493}; 491};
494 492
diff --git a/src/include/microhttpsd.h b/src/include/microhttpsd.h
index cf85d3c6..cb7fb51b 100644
--- a/src/include/microhttpsd.h
+++ b/src/include/microhttpsd.h
@@ -54,7 +54,7 @@ typedef enum
54 GNUTLS_KX_SRP, 54 GNUTLS_KX_SRP,
55 GNUTLS_KX_RSA_EXPORT, 55 GNUTLS_KX_RSA_EXPORT,
56 GNUTLS_KX_SRP_RSA, 56 GNUTLS_KX_SRP_RSA,
57 GNUTLS_KX_SRP_DSS, 57 GNUTLS_KX_SRP_DSS
58} gnutls_kx_algorithm_t; 58} gnutls_kx_algorithm_t;
59 59
60typedef enum 60typedef enum
@@ -72,7 +72,7 @@ typedef enum
72 GNUTLS_MAC_NULL = 1, 72 GNUTLS_MAC_NULL = 1,
73 GNUTLS_MAC_MD5, 73 GNUTLS_MAC_MD5,
74 GNUTLS_MAC_SHA1, 74 GNUTLS_MAC_SHA1,
75 GNUTLS_MAC_SHA256, 75 GNUTLS_MAC_SHA256
76 //GNUTLS_MAC_SHA384, 76 //GNUTLS_MAC_SHA384,
77 //GNUTLS_MAC_SHA512 77 //GNUTLS_MAC_SHA512
78} gnutls_mac_algorithm_t; 78} gnutls_mac_algorithm_t;
@@ -85,7 +85,7 @@ typedef enum
85 GNUTLS_DIG_NULL = GNUTLS_MAC_NULL, 85 GNUTLS_DIG_NULL = GNUTLS_MAC_NULL,
86 GNUTLS_DIG_MD5 = GNUTLS_MAC_MD5, 86 GNUTLS_DIG_MD5 = GNUTLS_MAC_MD5,
87 GNUTLS_DIG_SHA1 = GNUTLS_MAC_SHA1, 87 GNUTLS_DIG_SHA1 = GNUTLS_MAC_SHA1,
88 GNUTLS_DIG_SHA256 = GNUTLS_MAC_SHA256, 88 GNUTLS_DIG_SHA256 = GNUTLS_MAC_SHA256
89} gnutls_digest_algorithm_t; 89} gnutls_digest_algorithm_t;
90 90
91 91
@@ -119,7 +119,7 @@ typedef enum
119typedef enum 119typedef enum
120{ 120{
121 GNUTLS_PK_UNKNOWN = 0, 121 GNUTLS_PK_UNKNOWN = 0,
122 GNUTLS_PK_RSA = 1, 122 GNUTLS_PK_RSA = 1
123 //GNUTLS_PK_DSA 123 //GNUTLS_PK_DSA
124} gnutls_pk_algorithm_t; 124} gnutls_pk_algorithm_t;
125 125
@@ -144,7 +144,7 @@ enum MHD_InfoType
144 MHD_INFO_MAC_ALGO, 144 MHD_INFO_MAC_ALGO,
145 MHD_INFO_COMPRESSION_METHOD, 145 MHD_INFO_COMPRESSION_METHOD,
146 MHD_INFO_PROTOCOL, 146 MHD_INFO_PROTOCOL,
147 MHD_INFO_CERT_TYPE, 147 MHD_INFO_CERT_TYPE
148}; 148};
149 149
150union MHD_SessionInfo MHD_get_tls_session_info (struct MHD_Connection *con, 150union MHD_SessionInfo MHD_get_tls_session_info (struct MHD_Connection *con,
diff --git a/src/daemon/plibc.h b/src/include/plibc.h
index 8eafcc89..a939b0c8 100644
--- a/src/daemon/plibc.h
+++ b/src/include/plibc.h
@@ -438,7 +438,8 @@ extern "C"
438#define strcasecmp(a, b) stricmp(a, b) 438#define strcasecmp(a, b) stricmp(a, b)
439#define strncasecmp(a, b, c) strnicmp(a, b, c) 439#define strncasecmp(a, b, c) strnicmp(a, b, c)
440 440
441#endif /* WINDOWS */ 441#endif
442/* WINDOWS */
442 443
443#ifndef WINDOWS 444#ifndef WINDOWS
444#define DIR_SEPARATOR '/' 445#define DIR_SEPARATOR '/'
@@ -589,6 +590,7 @@ extern "C"
589#endif 590#endif
590 591
591 592
592#endif //_PLIBC_H_ 593#endif
594//_PLIBC_H_
593 595
594/* end of plibc.h */ 596/* end of plibc.h */