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
ccae8867
Kaydet (Commit)
ccae8867
authored
Ock 08, 2010
tarafından
Kai Sommerfeld
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fixed compile error after resync.
üst
db637a1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
46 deletions
+42
-46
neon.patch
neon/neon.patch
+42
-46
No files found.
neon/neon.patch
Dosyayı görüntüle @
ccae8867
--- misc/neon-0.28.2/src/config.h 20
09-12-10 13:29:15
.000000000 +0100
--- misc/neon-0.28.2/src/config.h 20
10-01-08 11:51:21
.000000000 +0100
+++ misc/build/neon-0.28.2/src/config.h 20
09-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/config.h 20
10-01-08 11:53:42
.000000000 +0100
@@ -1 +1,488 @@
@@ -1 +1,488 @@
-dummy
-dummy
+
+
...
@@ -490,8 +490,8 @@
...
@@ -490,8 +490,8 @@
+#else
+#else
+#define HAVE_NTLM 1
+#define HAVE_NTLM 1
+#endif
+#endif
--- misc/neon-0.28.2/src/makefile.mk 20
09-12-10 13:29:15
.000000000 +0100
--- misc/neon-0.28.2/src/makefile.mk 20
10-01-08 11:51:21
.000000000 +0100
+++ misc/build/neon-0.28.2/src/makefile.mk 20
09-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/makefile.mk 20
10-01-08 11:53:27
.000000000 +0100
@@ -1 +1,100 @@
@@ -1 +1,100 @@
-dummy
-dummy
+PRJ=..$/..$/..$/..$/..
+PRJ=..$/..$/..$/..$/..
...
@@ -595,7 +595,7 @@
...
@@ -595,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_auth.c 20
10-01-08 11:30:06
.000000000 +0100
@@ -77,6 +77,10 @@
@@ -77,6 +77,10 @@
#include "ne_sspi.h"
#include "ne_sspi.h"
#endif
#endif
...
@@ -634,8 +634,8 @@
...
@@ -634,8 +634,8 @@
static int get_credentials(auth_session *sess, ne_buffer **errmsg, int attempt,
static int get_credentials(auth_session *sess, ne_buffer **errmsg, int attempt,
struct auth_challenge *chall, char *pwbuf)
struct auth_challenge *chall, char *pwbuf)
{
{
- if (chall->handler->creds(chall->handler->userdata, sess->realm,
- if (chall->handler->creds(chall->handler->userdata, sess->realm,
+ if (chall->handler->creds(chall->handler->userdata, chall->protocol->name, sess->realm,
+ if (chall->handler->creds(chall->handler->userdata, chall->protocol->name, sess->realm,
chall->handler->attempt++, sess->username, pwbuf) == 0) {
chall->handler->attempt++, sess->username, pwbuf) == 0) {
return 0;
return 0;
} else {
} else {
...
@@ -643,9 +643,9 @@
...
@@ -643,9 +643,9 @@
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;
-
-
+ 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) {
if (!sess->sspi_context) {
...
@@ -756,7 +756,7 @@
...
@@ -756,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_auth.h 20
10-01-08 11:30:07
.000000000 +0100
@@ -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
...
@@ -769,7 +769,7 @@
...
@@ -769,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_defs.h 20
10-01-08 11:30:07
.000000000 +0100
@@ -41,7 +41,7 @@
@@ -41,7 +41,7 @@
#endif
#endif
...
@@ -780,7 +780,7 @@
...
@@ -780,7 +780,7 @@
#endif
#endif
--- misc/neon-0.28.2/src/ne_locks.c 2007-02-05 11:09:27.000000000 +0100
--- 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 20
09-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_locks.c 20
10-01-08 11:30:06
.000000000 +0100
@@ -579,6 +579,23 @@
@@ -579,6 +579,23 @@
const char *token = ne_get_response_header(ctx->req, "Lock-Token");
const char *token = ne_get_response_header(ctx->req, "Lock-Token");
/* at the root element; retrieve the Lock-Token header,
/* at the root element; retrieve the Lock-Token header,
...
@@ -848,7 +848,7 @@
...
@@ -848,7 +848,7 @@
}
}
}
}
--- 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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_locks.h 20
10-01-08 11:30:07
.000000000 +0100
@@ -22,6 +22,10 @@
@@ -22,6 +22,10 @@
#ifndef NE_LOCKS_H
#ifndef NE_LOCKS_H
#define NE_LOCKS_H
#define NE_LOCKS_H
...
@@ -860,8 +860,8 @@
...
@@ -860,8 +860,8 @@
#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-12-10 13:29:15
.000000000 +0100
--- misc/neon-0.28.2/src/ne_ntlm.c 20
10-01-08 11:51:21
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_ntlm.c 20
09-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_ntlm.c 20
10-01-08 11:53:52
.000000000 +0100
@@ -1 +1,703 @@
@@ -1 +1,703 @@
-dummy
-dummy
+/*
+/*
...
@@ -1567,8 +1567,8 @@
...
@@ -1567,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-12-10 13:29:15
.000000000 +0100
--- misc/neon-0.28.2/src/ne_ntlm.h 20
10-01-08 11:51:21
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_ntlm.h 20
09-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_ntlm.h 20
10-01-08 11:53:52
.000000000 +0100
@@ -1 +1,44 @@
@@ -1 +1,44 @@
-dummy
-dummy
+/*
+/*
...
@@ -1616,7 +1616,7 @@
...
@@ -1616,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_socket.c 20
10-01-08 11:30:06
.000000000 +0100
@@ -60,6 +60,7 @@
@@ -60,6 +60,7 @@
#include <stddef.h>
#include <stddef.h>
#ifdef USE_GETADDRINFO
#ifdef USE_GETADDRINFO
...
@@ -1626,15 +1626,11 @@
...
@@ -1626,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-12-10 13:28:42.000000000 +0100
+++ 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.
+ */
+ */
...
@@ -1669,13 +1665,14 @@
...
@@ -1669,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.
...
@@ -1685,11 +1682,17 @@
...
@@ -1685,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) {
...
@@ -1705,19 +1708,12 @@
...
@@ -1705,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_sspi.h 20
10-01-08 11:30:06
.000000000 +0100
@@ -41,7 +41,7 @@
@@ -41,7 +41,7 @@
int ne_sspi_clear_context(void *context);
int ne_sspi_clear_context(void *context);
...
@@ -1728,7 +1724,7 @@
...
@@ -1728,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_uri.c 20
10-01-08 11:30:06
.000000000 +0100
@@ -42,7 +42,7 @@
@@ -42,7 +42,7 @@
#include "ne_alloc.h"
#include "ne_alloc.h"
#include "ne_uri.h"
#include "ne_uri.h"
...
@@ -1775,7 +1771,7 @@
...
@@ -1775,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_utils.c 20
10-01-08 11:30:06
.000000000 +0100
@@ -118,6 +118,9 @@
@@ -118,6 +118,9 @@
#ifdef HAVE_GNUTLS
#ifdef HAVE_GNUTLS
", GNU TLS " LIBGNUTLS_VERSION
", GNU TLS " LIBGNUTLS_VERSION
...
@@ -1806,7 +1802,7 @@
...
@@ -1806,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-12-10 13:21:58
.000000000 +0100
+++ misc/build/neon-0.28.2/src/ne_utils.h 20
10-01-08 11:30:07
.000000000 +0100
@@ -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