Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e5d4d09e
Kaydet (Commit)
e5d4d09e
authored
Şub 12, 2010
tarafından
Henning Brinkmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
writefilter07: merged DEV300_m71
üst
c08aaf67
270a9265
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
142 additions
and
59 deletions
+142
-59
build.lst
cairo/prj/build.lst
+1
-1
makefile.mk
graphite/makefile.mk
+6
-0
makefile.mk
neon/makefile.mk
+2
-1
neon.patch
neon/neon.patch
+133
-57
No files found.
cairo/prj/build.lst
Dosyayı görüntüle @
e5d4d09e
lcairo cairo : zlib soltools NULL
lcairo cairo :
ZLIB:
zlib soltools NULL
lcairo cairo usr1 - all lcairo_mkout NULL
lcairo cairo usr1 - all lcairo_mkout NULL
lcairo cairo\pixman nmake - all lcairo_pixman NULL
lcairo cairo\pixman nmake - all lcairo_pixman NULL
lcairo cairo\cairo nmake - all lcairo_cairo lcairo_pixman NULL
lcairo cairo\cairo nmake - all lcairo_cairo lcairo_pixman NULL
graphite/makefile.mk
Dosyayı görüntüle @
e5d4d09e
...
@@ -68,6 +68,12 @@ TARGET=so_graphite
...
@@ -68,6 +68,12 @@ TARGET=so_graphite
.INCLUDE
:
settings.mk
.INCLUDE
:
settings.mk
.IF
"$(SYSTEM_GRAPHITE)"
==
"YES"
all
:
@echo
"An already available installation of silgraphite should exist on your system."
@echo
"Therefore the version provided here does not need to be built in addition."
.ENDIF
# --- Files --------------------------------------------------------
# --- Files --------------------------------------------------------
.IF
"$(ENABLE_GRAPHITE)"
==
"TRUE"
.IF
"$(ENABLE_GRAPHITE)"
==
"TRUE"
TARFILE_NAME
=
silgraphite-2.3.1
TARFILE_NAME
=
silgraphite-2.3.1
...
...
neon/makefile.mk
Dosyayı görüntüle @
e5d4d09e
...
@@ -62,8 +62,8 @@ PATCH_FILES=neon.patch
...
@@ -62,8 +62,8 @@ PATCH_FILES=neon.patch
.ENDIF
.ENDIF
ADDITIONAL_FILES
=
src
$/
makefile.mk src
$/
config.h src
$/
ne_ntlm.h src
$/
ne_ntlm.c
ADDITIONAL_FILES
=
src
$/
makefile.mk src
$/
config.h src
$/
ne_ntlm.h src
$/
ne_ntlm.c
BUILD_DIR
=
src
BUILD_DIR
=
src
BUILD_ACTION
=
dmake
$(MFLAGS)
$(CALLMACROS)
BUILD_ACTION
=
dmake
$(MFLAGS)
$(CALLMACROS)
OUT2INC
=
\
OUT2INC
=
\
...
@@ -71,6 +71,7 @@ OUT2INC= \
...
@@ -71,6 +71,7 @@ OUT2INC= \
$(BUILD_DIR)$/
ne_alloc.h
\
$(BUILD_DIR)$/
ne_alloc.h
\
$(BUILD_DIR)$/
ne_auth.h
\
$(BUILD_DIR)$/
ne_auth.h
\
$(BUILD_DIR)$/
ne_basic.h
\
$(BUILD_DIR)$/
ne_basic.h
\
$(BUILD_DIR)$/
ne_compress.h
\
$(BUILD_DIR)$/
ne_defs.h
\
$(BUILD_DIR)$/
ne_defs.h
\
$(BUILD_DIR)$/
ne_locks.h
\
$(BUILD_DIR)$/
ne_locks.h
\
$(BUILD_DIR)$/
ne_props.h
\
$(BUILD_DIR)$/
ne_props.h
\
...
...
neon/neon.patch
Dosyayı görüntüle @
e5d4d09e
--- misc/neon-0.28.2/src/config.h 20
09-09-29 10:28:26.750000000 +02
00
--- misc/neon-0.28.2/src/config.h 20
10-01-08 11:51:21.000000000 +01
00
+++ misc/build/neon-0.28.2/src/config.h 20
09-09-29 10:22:51.890625000 +02
00
+++ misc/build/neon-0.28.2/src/config.h 20
10-01-08 11:53:42.000000000 +01
00
@@ -1 +1,48
4
@@
@@ -1 +1,48
8
@@
-dummy
-dummy
+
+
+/* Define to specific EGD socket path */
+/* Define to specific EGD socket path */
...
@@ -132,14 +132,14 @@
...
@@ -132,14 +132,14 @@
+#endif
+#endif
+
+
+/* Define if OpenSSL support is enabled */
+/* Define if OpenSSL support is enabled */
+
/* #undef HAVE_OPENSSL */
+
#define HAVE_OPENSSL 1
+
#define HAVE_OPENSSL
+
+/* Define to 1 if you have the <openssl/opensslv.h> header file. */
+/* Define to 1 if you have the <openssl/opensslv.h> header file. */
+/* #undef HAVE_OPENSSL_OPENSSLV_H */
+#define HAVE_OPENSSL_OPENSSLV_H 1
+#define HAVE_OPENSSL_OPENSSLV_H 1
+
+/* Define to 1 if you have the <openssl/ssl.h> header file. */
+/* Define to 1 if you have the <openssl/ssl.h> header file. */
+/* #undef HAVE_OPENSSL_SSL_H */
+#define HAVE_OPENSSL_SSL_H 1
+#define HAVE_OPENSSL_SSL_H 1
+
+/* Define to 1 if you have the `pipe' function. */
+/* Define to 1 if you have the `pipe' function. */
+#define HAVE_PIPE 1
+#define HAVE_PIPE 1
+
+
...
@@ -340,13 +340,13 @@
...
@@ -340,13 +340,13 @@
+/* #undef NE_HAVE_SOCKS */
+/* #undef NE_HAVE_SOCKS */
+
+
+/* Defined if SSL is supported */
+/* Defined if SSL is supported */
+/* #undef NE_HAVE_SSL */
+#define NE_HAVE_SSL
+#define NE_HAVE_SSL
+
+/* Defined if TS_SSL is supported */
+/* Defined if TS_SSL is supported */
+/* #undef NE_HAVE_TS_SSL */
+/* #undef NE_HAVE_TS_SSL */
+
+
+/* Defined if ZLIB is supported */
+/* Defined if ZLIB is supported */
+
/* #undef NE_HAVE_ZLIB */
+
#define NE_HAVE_ZLIB 1
+
+
+/* Define to be filename of an SSL CA root bundle */
+/* Define to be filename of an SSL CA root bundle */
+/* #undef NE_SSL_CA_BUNDLE */
+/* #undef NE_SSL_CA_BUNDLE */
...
@@ -455,6 +455,10 @@
...
@@ -455,6 +455,10 @@
+/* Define to `unsigned' if <sys/types.h> does not define. */
+/* Define to `unsigned' if <sys/types.h> does not define. */
+/* #undef size_t */
+/* #undef size_t */
+
+
+/* MS IIS does not send Lock-Token response header after creation of a */
+/* new lock. This violates RFC, but... if we want to talk with this */
+/* beast we need a workaround */
+#define IIS_LOCK_BUG_WORKAROUND 1
+
+
+/* Enable leak-tracking versions of ne_*alloc when NEON_MEMLEAK is enabled */
+/* Enable leak-tracking versions of ne_*alloc when NEON_MEMLEAK is enabled */
+#ifdef NEON_MEMLEAK
+#ifdef NEON_MEMLEAK
...
@@ -486,9 +490,9 @@
...
@@ -486,9 +490,9 @@
+#else
+#else
+#define HAVE_NTLM 1
+#define HAVE_NTLM 1
+#endif
+#endif
--- misc/neon-0.28.2/src/makefile.mk 20
09-09-29 10:28:26.687500000 +02
00
--- misc/neon-0.28.2/src/makefile.mk 20
10-01-08 11:51:21.000000000 +01
00
+++ misc/build/neon-0.28.2/src/makefile.mk 20
09-09-17 13:04:18.031250000 +02
00
+++ misc/build/neon-0.28.2/src/makefile.mk 20
10-01-08 11:53:27.000000000 +01
00
@@ -1 +1,
92
@@
@@ -1 +1,
100
@@
-dummy
-dummy
+PRJ=..$/..$/..$/..$/..
+PRJ=..$/..$/..$/..$/..
+
+
...
@@ -497,7 +501,7 @@
...
@@ -497,7 +501,7 @@
+LIBTARGET=NO
+LIBTARGET=NO
+USE_DEFFILE=TRUE
+USE_DEFFILE=TRUE
+EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
+EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
+
UWINAPILIB=
+UWINAPILIB=
+
+
+# --- Settings -----------------------------------------------------
+# --- Settings -----------------------------------------------------
+
+
...
@@ -508,7 +512,7 @@
...
@@ -508,7 +512,7 @@
+CDEFS+=-DHAVE_CONFIG_H
+CDEFS+=-DHAVE_CONFIG_H
+
+
+.IF "$(SYSTEM_LIBXML)" == "YES"
+.IF "$(SYSTEM_LIBXML)" == "YES"
+CFLAGS+=
-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
+CFLAGS+=-DSYSTEM_LIBXML $(LIBXML_CFLAGS)
+.ELSE
+.ELSE
+LIBXMLINCDIR=external$/libxml
+LIBXMLINCDIR=external$/libxml
+CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
+CFLAGS+= -I$(SOLARINCDIR)$/$(LIBXMLINCDIR)
...
@@ -518,6 +522,13 @@
...
@@ -518,6 +522,13 @@
+CFLAGS+= $(OPENSSL_CFLAGS)
+CFLAGS+= $(OPENSSL_CFLAGS)
+.ENDIF
+.ENDIF
+
+
+.IF "$(SYSTEM_ZLIB)" == "YES"
+CFLAGS+=-DSYSTEM_ZLIB
+.ELSE
+ZLIBINCDIR=external$/zlib
+CFLAGS+=-I$(SOLARINCDIR)$/$(ZLIBINCDIR)
+.ENDIF
+
+SLOFILES= \
+SLOFILES= \
+ $(SLO)$/ne_207.obj \
+ $(SLO)$/ne_207.obj \
+ $(SLO)$/ne_acl.obj \
+ $(SLO)$/ne_acl.obj \
...
@@ -555,7 +566,8 @@
...
@@ -555,7 +566,8 @@
+SHL1VERSIONMAP=exports.map
+SHL1VERSIONMAP=exports.map
+SHL1IMPLIB=i$(TARGET)
+SHL1IMPLIB=i$(TARGET)
+
+
+SHL1STDLIBS+= $(LIBXML2LIB)
+SHL1STDLIBS+= $(LIBXML2LIB) \
+ $(ZLIB3RDLIB)
+
+
+.IF "$(GUI)"=="WNT"
+.IF "$(GUI)"=="WNT"
+ SHL1STDLIBS+= $(WSOCK32LIB)
+ SHL1STDLIBS+= $(WSOCK32LIB)
...
@@ -583,7 +595,7 @@
...
@@ -583,7 +595,7 @@
+DEF1NAME=$(SHL1TARGET)
+DEF1NAME=$(SHL1TARGET)
+.INCLUDE : target.mk
+.INCLUDE : target.mk
--- misc/neon-0.28.2/src/ne_auth.c 2008-02-29 17:30:12.000000000 +0100
--- misc/neon-0.28.2/src/ne_auth.c 2008-02-29 17:30:12.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_auth.c 20
09-09-29 10:22:51.906250000 +02
00
+++ misc/build/neon-0.28.2/src/ne_auth.c 20
10-01-08 11:30:06.000000000 +01
00
@@ -77,6 +77,10 @@
@@ -77,6 +77,10 @@
#include "ne_sspi.h"
#include "ne_sspi.h"
#endif
#endif
...
@@ -627,7 +639,7 @@
...
@@ -627,7 +639,7 @@
chall->handler->attempt++, sess->username, pwbuf) == 0) {
chall->handler->attempt++, sess->username, pwbuf) == 0) {
return 0;
return 0;
} else {
} else {
@@ -598,
9 +611,10
@@
@@ -598,
7 +611,8
@@
int ntlm = ne_strcasecmp(parms->protocol->name, "NTLM") == 0;
int ntlm = ne_strcasecmp(parms->protocol->name, "NTLM") == 0;
int status;
int status;
char *response = NULL;
char *response = NULL;
...
@@ -635,11 +647,8 @@
...
@@ -635,11 +647,8 @@
+ char password[NE_ABUFSIZ];
+ char password[NE_ABUFSIZ];
+
+
NE_DEBUG(NE_DBG_HTTPAUTH, "auth: SSPI challenge.\n");
NE_DEBUG(NE_DBG_HTTPAUTH, "auth: SSPI challenge.\n");
-
+
if (!sess->sspi_context) {
ne_uri uri = {0};
if (!sess->sspi_context) {
@@ -614,8 +628,17 @@
@@ -614,8 +628,17 @@
return status;
return status;
}
}
...
@@ -685,7 +694,7 @@
...
@@ -685,7 +694,7 @@
+
+
+ NE_DEBUG(NE_DBG_HTTPAUTH, "auth: NTLM challenge.\n");
+ NE_DEBUG(NE_DBG_HTTPAUTH, "auth: NTLM challenge.\n");
+
+
+ if (!parms->opaque) {
+ if (!parms->opaque
&& (!sess->ntlm_context || (attempt > 1))
) {
+ char password[NE_ABUFSIZ];
+ char password[NE_ABUFSIZ];
+
+
+ if (get_credentials(sess, errmsg, attempt, parms, password)) {
+ if (get_credentials(sess, errmsg, attempt, parms, password)) {
...
@@ -747,7 +756,7 @@
...
@@ -747,7 +756,7 @@
return ret;
return ret;
}
}
--- misc/neon-0.28.2/src/ne_auth.h 2007-12-05 17:39:58.000000000 +0100
--- misc/neon-0.28.2/src/ne_auth.h 2007-12-05 17:39:58.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_auth.h 20
09-09-29 10:22:51.921875000 +02
00
+++ misc/build/neon-0.28.2/src/ne_auth.h 20
10-01-08 11:30:07.000000000 +01
00
@@ -47,8 +47,8 @@
@@ -47,8 +47,8 @@
* Hint: if you just wish to attempt authentication just once (even if
* Hint: if you just wish to attempt authentication just once (even if
* the user gets the username/password wrong), have the callback
* the user gets the username/password wrong), have the callback
...
@@ -760,7 +769,7 @@
...
@@ -760,7 +769,7 @@
/* Set callbacks to provide credentials for server and proxy
/* Set callbacks to provide credentials for server and proxy
* authentication, using the default set of authentication protocols.
* authentication, using the default set of authentication protocols.
--- misc/neon-0.28.2/src/ne_defs.h 2006-10-24 21:40:09.000000000 +0200
--- misc/neon-0.28.2/src/ne_defs.h 2006-10-24 21:40:09.000000000 +0200
+++ misc/build/neon-0.28.2/src/ne_defs.h 20
09-09-29 10:22:51.921875000 +02
00
+++ misc/build/neon-0.28.2/src/ne_defs.h 20
10-01-08 11:30:07.000000000 +01
00
@@ -41,7 +41,7 @@
@@ -41,7 +41,7 @@
#endif
#endif
...
@@ -770,8 +779,76 @@
...
@@ -770,8 +779,76 @@
#define ssize_t int
#define ssize_t int
#endif
#endif
--- misc/neon-0.28.2/src/ne_locks.c 2007-02-05 11:09:27.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_locks.c 2010-01-08 11:30:06.000000000 +0100
@@ -579,6 +579,23 @@
const char *token = ne_get_response_header(ctx->req, "Lock-Token");
/* at the root element; retrieve the Lock-Token header,
* and bail if it wasn't given. */
+#ifdef IIS_LOCK_BUG_WORKAROUND
+ /* MS IIS violates RFC 2518/4918. It does not send a Lock-Token response
+ header upon successful creation of a new lock. As a workaround, we
+ will try to pick the lock token from the response body (although
+ this is not 100% safe in case of multiple activelocks). */
+ if (token == NULL)
+ NE_DEBUG(NE_DBG_LOCKS,
+ "Ignoring missing LOCK response Lock-Token header\n");
+
+ if (token != NULL) {
+ if (token[0] == '<') token++;
+ ctx->token = ne_strdup(token);
+ ne_shave(ctx->token, ">");
+ NE_DEBUG(NE_DBG_LOCKS, "lk_startelm: Finding token %s\n",
+ ctx->token);
+ }
+#else
if (token == NULL) {
ne_xml_set_error(ctx->parser,
_("LOCK response missing Lock-Token header"));
@@ -590,12 +607,28 @@
ne_shave(ctx->token, ">");
NE_DEBUG(NE_DBG_LOCKS, "lk_startelm: Finding token %s\n",
ctx->token);
+#endif
}
/* TODO: only accept 'prop' as root for LOCK response */
if (!can_accept(parent, id))
return NE_XML_DECLINE;
+#ifdef IIS_LOCK_BUG_WORKAROUND
+ if (id == ELM_activelock && ctx->found) {
+ /* Found another activelock... */
+ const char *token = ne_get_response_header(ctx->req, "Lock-Token");
+ if (token == NULL) {
+ /* Response contains more than one activelock and no Lock-Token
+ * response header. We are doomed. No safe workaround for IIS
+ * lock bug possible. */
+ ne_xml_set_error(ctx->parser,
+ _("LOCK response missing Lock-Token header and more than one activelock"));
+ return NE_XML_ABORT;
+ }
+ }
+#endif
+
if (id == ELM_activelock && !ctx->found) {
/* a new activelock */
ne_lock_free(&ctx->active);
@@ -621,7 +654,12 @@
return -1;
if (state == ELM_activelock) {
+#ifdef IIS_LOCK_BUG_WORKAROUND
+ if (ctx->active.token) {
+ ctx->token = ne_strdup(ctx->active.token);
+#else
if (ctx->active.token && strcmp(ctx->active.token, ctx->token) == 0) {
+#endif
ctx->found = 1;
}
}
--- misc/neon-0.28.2/src/ne_locks.h 2006-01-02 12:43:19.000000000 +0100
--- misc/neon-0.28.2/src/ne_locks.h 2006-01-02 12:43:19.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_locks.h 20
09-09-29 10:22:51.921875000 +02
00
+++ misc/build/neon-0.28.2/src/ne_locks.h 20
10-01-08 11:30:07.000000000 +01
00
@@ -22,6 +22,10 @@
@@ -22,6 +22,10 @@
#ifndef NE_LOCKS_H
#ifndef NE_LOCKS_H
#define NE_LOCKS_H
#define NE_LOCKS_H
...
@@ -783,9 +860,9 @@
...
@@ -783,9 +860,9 @@
#include "ne_request.h" /* for ne_session + ne_request */
#include "ne_request.h" /* for ne_session + ne_request */
#include "ne_uri.h" /* for ne_uri */
#include "ne_uri.h" /* for ne_uri */
--- misc/neon-0.28.2/src/ne_ntlm.c 20
09-09-29 10:28:26.875000000 +02
00
--- misc/neon-0.28.2/src/ne_ntlm.c 20
10-01-08 11:51:21.000000000 +01
00
+++ misc/build/neon-0.28.2/src/ne_ntlm.c 20
09-09-29 10:22:51.937500000 +02
00
+++ misc/build/neon-0.28.2/src/ne_ntlm.c 20
10-01-08 11:53:52.000000000 +01
00
@@ -1 +1,70
0
@@
@@ -1 +1,70
3
@@
-dummy
-dummy
+/*
+/*
+ Handling of NTLM Authentication
+ Handling of NTLM Authentication
...
@@ -1458,6 +1535,9 @@
...
@@ -1458,6 +1535,9 @@
+ if (context == NULL) {
+ if (context == NULL) {
+ return -1;
+ return -1;
+ } else {
+ } else {
+ if (!responseToken && (context->state == NTLMSTATE_TYPE3))
+ context->state = NTLMSTATE_NONE;
+
+ if (context->state <= NTLMSTATE_TYPE3) {
+ if (context->state <= NTLMSTATE_TYPE3) {
+ ntlm ntlmstatus = ne_input_ntlm(context, responseToken);
+ ntlm ntlmstatus = ne_input_ntlm(context, responseToken);
+
+
...
@@ -1487,8 +1567,8 @@
...
@@ -1487,8 +1567,8 @@
+
+
+#endif /* HAVE_OPENSSL */
+#endif /* HAVE_OPENSSL */
+#endif /* HAVE_NTLM */
+#endif /* HAVE_NTLM */
--- misc/neon-0.28.2/src/ne_ntlm.h 20
09-09-29 10:28:26.812500000 +02
00
--- misc/neon-0.28.2/src/ne_ntlm.h 20
10-01-08 11:51:21.000000000 +01
00
+++ misc/build/neon-0.28.2/src/ne_ntlm.h 20
09-09-29 10:22:51.937500000 +02
00
+++ misc/build/neon-0.28.2/src/ne_ntlm.h 20
10-01-08 11:53:52.000000000 +01
00
@@ -1 +1,44 @@
@@ -1 +1,44 @@
-dummy
-dummy
+/*
+/*
...
@@ -1536,7 +1616,7 @@
...
@@ -1536,7 +1616,7 @@
+
+
+#endif /* NE_NTLM_H */
+#endif /* NE_NTLM_H */
--- misc/neon-0.28.2/src/ne_socket.c 2008-02-28 14:19:19.000000000 +0100
--- misc/neon-0.28.2/src/ne_socket.c 2008-02-28 14:19:19.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_socket.c 20
09-09-29 10:22:51.953125000 +02
00
+++ misc/build/neon-0.28.2/src/ne_socket.c 20
10-01-08 11:30:06.000000000 +01
00
@@ -60,6 +60,7 @@
@@ -60,6 +60,7 @@
#include <stddef.h>
#include <stddef.h>
#ifdef USE_GETADDRINFO
#ifdef USE_GETADDRINFO
...
@@ -1546,15 +1626,11 @@
...
@@ -1546,15 +1626,11 @@
#endif
#endif
--- misc/neon-0.28.2/src/ne_sspi.c 2007-08-10 17:26:08.000000000 +0200
--- misc/neon-0.28.2/src/ne_sspi.c 2007-08-10 17:26:08.000000000 +0200
+++ misc/build/neon-0.28.2/src/ne_sspi.c 2009-09-29 10:22:51.953125000 +0200
+++ misc/build/neon-0.28.2/src/ne_sspi.c 2010-01-08 11:30:07.000000000 +0100
@@ -202,9 +202,48 @@
@@ -206,6 +206,45 @@
return -1;
}
}
+ return 0;
/*
+}
+
+/*
+ * Simplification wrapper arround AcquireCredentialsHandle as most of
+ * Simplification wrapper arround AcquireCredentialsHandle as most of
+ * the parameters do not change.
+ * the parameters do not change.
+ */
+ */
...
@@ -1589,13 +1665,14 @@
...
@@ -1589,13 +1665,14 @@
+ return -1;
+ return -1;
+ }
+ }
+
+
return 0;
+ return 0;
}
+}
+
+
/*
+
+/*
* Wrapper arround initializeSecurityContext. Supplies several
* Wrapper arround initializeSecurityContext. Supplies several
* default parameters as well as logging in case of errors.
* default parameters as well as logging in case of errors.
*/
@@ -483,7 +522,7 @@
@@ -483,7 +522,7 @@
* Processes received authentication tokens as well as supplies the
* Processes received authentication tokens as well as supplies the
* response token.
* response token.
...
@@ -1605,11 +1682,17 @@
...
@@ -1605,11 +1682,17 @@
{
{
SecBufferDesc outBufferDesc;
SecBufferDesc outBufferDesc;
SecBuffer outBuffer;
SecBuffer outBuffer;
@@ -560,14 +599,23 @@
@@ -561,13 +600,22 @@
/* Reset any existing context since we are starting over */
/* Reset any existing context since we are starting over */
resetContext(sspiContext);
resetContext(sspiContext);
+
- if (acquireCredentialsHandle
- (&sspiContext->credentials, sspiContext->mechanism) != SEC_E_OK) {
- freeBuffer(&outBufferDesc);
- NE_DEBUG(NE_DBG_HTTPAUTH,
- "sspi: acquireCredentialsHandle failed.\n");
- return -1;
- }
+ if (strlen(username) != 0) {
+ if (strlen(username) != 0) {
+ if (acquireCredentialsHandleForUsername
+ if (acquireCredentialsHandleForUsername
+ (&sspiContext->credentials, sspiContext->mechanism, username, password) != SEC_E_OK) {
+ (&sspiContext->credentials, sspiContext->mechanism, username, password) != SEC_E_OK) {
...
@@ -1625,19 +1708,12 @@
...
@@ -1625,19 +1708,12 @@
+ return -1;
+ return -1;
+ }
+ }
+ }
+ }
+
- if (acquireCredentialsHandle
- (&sspiContext->credentials, sspiContext->mechanism) != SEC_E_OK) {
- freeBuffer(&outBufferDesc);
- NE_DEBUG(NE_DBG_HTTPAUTH,
- "sspi: acquireCredentialsHandle failed.\n");
- return -1;
- }
securityStatus =
securityStatus =
initializeSecurityContext(&sspiContext->credentials, NULL,
initializeSecurityContext(&sspiContext->credentials, NULL,
--- misc/neon-0.28.2/src/ne_sspi.h 2006-02-12 13:05:14.000000000 +0100
--- misc/neon-0.28.2/src/ne_sspi.h 2006-02-12 13:05:14.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_sspi.h 20
09-09-29 10:22:51.968750000 +02
00
+++ misc/build/neon-0.28.2/src/ne_sspi.h 20
10-01-08 11:30:06.000000000 +01
00
@@ -41,7 +41,7 @@
@@ -41,7 +41,7 @@
int ne_sspi_clear_context(void *context);
int ne_sspi_clear_context(void *context);
...
@@ -1648,7 +1724,7 @@
...
@@ -1648,7 +1724,7 @@
#endif /* HAVE_SSPI */
#endif /* HAVE_SSPI */
--- misc/neon-0.28.2/src/ne_uri.c 2007-12-05 12:04:47.000000000 +0100
--- misc/neon-0.28.2/src/ne_uri.c 2007-12-05 12:04:47.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_uri.c 20
09-09-29 10:22:51.968750000 +02
00
+++ misc/build/neon-0.28.2/src/ne_uri.c 20
10-01-08 11:30:06.000000000 +01
00
@@ -42,7 +42,7 @@
@@ -42,7 +42,7 @@
#include "ne_alloc.h"
#include "ne_alloc.h"
#include "ne_uri.h"
#include "ne_uri.h"
...
@@ -1695,7 +1771,7 @@
...
@@ -1695,7 +1771,7 @@
/* 4x */ AT, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL,
/* 4x */ AT, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL,
/* 5x */ AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, GD, OT, GD, OT, US,
/* 5x */ AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, AL, GD, OT, GD, OT, US,
--- misc/neon-0.28.2/src/ne_utils.c 2006-03-07 10:36:43.000000000 +0100
--- misc/neon-0.28.2/src/ne_utils.c 2006-03-07 10:36:43.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_utils.c 20
09-09-29 10:22:51.984375000 +02
00
+++ misc/build/neon-0.28.2/src/ne_utils.c 20
10-01-08 11:30:06.000000000 +01
00
@@ -118,6 +118,9 @@
@@ -118,6 +118,9 @@
#ifdef HAVE_GNUTLS
#ifdef HAVE_GNUTLS
", GNU TLS " LIBGNUTLS_VERSION
", GNU TLS " LIBGNUTLS_VERSION
...
@@ -1726,7 +1802,7 @@
...
@@ -1726,7 +1802,7 @@
#endif /* NE_HAVE_* */
#endif /* NE_HAVE_* */
default:
default:
--- misc/neon-0.28.2/src/ne_utils.h 2007-07-16 08:54:57.000000000 +0200
--- misc/neon-0.28.2/src/ne_utils.h 2007-07-16 08:54:57.000000000 +0200
+++ misc/build/neon-0.28.2/src/ne_utils.h 20
09-09-29 10:22:51.984375000 +02
00
+++ misc/build/neon-0.28.2/src/ne_utils.h 20
10-01-08 11:30:07.000000000 +01
00
@@ -54,6 +54,7 @@
@@ -54,6 +54,7 @@
#define NE_FEATURE_SOCKS (5) /* SOCKSv5 support */
#define NE_FEATURE_SOCKS (5) /* SOCKSv5 support */
#define NE_FEATURE_TS_SSL (6) /* Thread-safe SSL/TLS support */
#define NE_FEATURE_TS_SSL (6) /* Thread-safe SSL/TLS support */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment