-include $(GNUSTEP_MAKEFILES)/common.make
-# Note: to build on Debian, specify "HTTPD=/usr/sbin/apache" in the make call
-
# config
APACHE = /usr
APXS = $(APACHE)/sbin/apxs
-HTTPD = $(APACHE)/sbin/httpd
ifneq ($(apxs),no)
ifneq ($(apxs),yes)
APXS=
endif
-APACHE_VERSION = $(shell ./apversion.sh -v ${HTTPD} | head -n 1)
-#APACHE_SSL = $(shell ./apversion.sh -iseapi ${HTTPD})
-APACHE_SSL =
-
ifneq ($(APXS),)
ifneq ($(shared),no)
APXS_CFLAGS = $(shell $(APXS) -q CFLAGS_SHLIB) $(shell $(APXS) -q CFLAGS)
config.o \
ngobjweb_module.o \
-ifeq ($(APACHE_SSL),yes)
-APACHE_SSL=ssl
-else
-APACHE_SSL=
-endif
-
-product = ngobjweb$(APACHE_SSL)_$(APACHE_VERSION)$(SHARED_LIBEXT)
+product = mod_ngobjweb$(SHARED_LIBEXT)
all : $(product)
/*
- Copyright (C) 2000-2003 SKYRIX Software AG
+ Copyright (C) 2000-2004 SKYRIX Software AG
- This file is part of OGo
+ This file is part of SOPE.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
-// $Id$
#include "common.h"
#include "NGBufferedDescriptor.h"
-char NGScanResponseLine(NGBufferedDescriptor *_in,
- char *_version, int *_status, char *_text) {
+unsigned char NGScanResponseLine(NGBufferedDescriptor *_in,
+ unsigned char *_version, int *_status,
+ unsigned char *_text)
+{
if (_in == NULL) return 0;
if (_version) *_version = '\0';
int c;
int i;
- // scan HTTP Version
+ /* scan HTTP Version */
{
c = NGBufferedDescriptor_readChar(_in);
i = 0;
if (c < 1) return 0; // read error
}
- // skip spaces
+ /* skip spaces */
while ((c > 0) && apr_isspace(c))
c = NGBufferedDescriptor_readChar(_in);
if (c < 1) return 0; // read error
- // scan code
+ /* scan code */
{
char buf[10];
i = 0;
- while ((c > 0) && !apr_isspace(c) && (c != '\r') && (c != '\n') && (i < 6)) {
+ while ((c > 0) && !apr_isspace(c) && (c != '\r') && (c != '\n') &&
+ (i < 6)) {
buf[i] = c;
i++;
c = NGBufferedDescriptor_readChar(_in);
if (_status) *_status = atoi(buf);
}
- // skip spaces
+ /* skip spaces */
while ((c > 0) && apr_isspace(c))
c = NGBufferedDescriptor_readChar(_in);
if (c < 1) return 0; // read error
- // check for EOL
+ /* check for EOL */
if (c == '\n') return 1; // response without reason
if (c == '\r') { // response without reason
c = NGBufferedDescriptor_readChar(_in); // c=='\n'
return 1;
}
- // scan reason
+ /* scan reason */
{
i = 0;
- while ((c > 0) && !apr_isspace(c) && (c != '\r') && (c != '\n') && (i < 6)) {
+ while ((c > 0) && !apr_isspace(c) && (c != '\r') && (c != '\n') &&
+ (i < 6)) {
if (_text) _text[i] = c;
i++;
c = NGBufferedDescriptor_readChar(_in);
if (c < 1) return 0; // read error
}
- // scan until line end
+ /* scan until line end */
while ((c > 0) && (c != '\n'))
c = NGBufferedDescriptor_readChar(_in);