public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/neon] epel10: - fix NTLM test failures on bigendian systems
@ 2026-08-26 14:40 Joe Orton
0 siblings, 0 replies; only message in thread
From: Joe Orton @ 2026-08-26 14:40 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/neon
Branch : epel10
Commit : 0b290c37b08091003aef3c6b04f421c8d6ae5474
Author : Joe Orton <jorton@redhat.com>
Date : 2026-03-13T13:10:52+00:00
Stats : +45/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/neon/c/0b290c37b08091003aef3c6b04f421c8d6ae5474?branch=epel10
Log:
- fix NTLM test failures on bigendian systems
---
diff --git a/neon-0.37.0-bigend.patch b/neon-0.37.0-bigend.patch
new file mode 100644
index 0000000..ea99e8c
--- /dev/null
+++ b/neon-0.37.0-bigend.patch
@@ -0,0 +1,44 @@
+
+Fix test cases on bigendian systems.
+
+diff --git a/test/auth.c b/test/auth.c
+index 09fe2c6..41a0407 100644
+--- a/test/auth.c
++++ b/test/auth.c
+@@ -1788,10 +1788,10 @@ static int build_type2_challenge(tSmbNtlmAuthChallenge *challenge,
+ challenge->buffer[i*2] = domain[i];
+ challenge->buffer[i*2+1] = 0;
+ }
+- challenge->uDomain.len = i * 2;
+- challenge->uDomain.maxlen = i * 2;
+- challenge->uDomain.offset = (unsigned char *)challenge->buffer - (unsigned char *)challenge;
+- challenge->bufIndex = i * 2;
++ challenge->uDomain.len = htole16(i * 2);
++ challenge->uDomain.maxlen = htole16(i * 2);
++ challenge->uDomain.offset = htole32((unsigned char *)challenge->buffer - (unsigned char *)challenge);
++ challenge->bufIndex = htole32(i * 2);
+ }
+
+ return OK;
+@@ -1846,8 +1846,8 @@ static int serve_ntlm(ne_socket *sock, void *userdata)
+
+ ONV(memcmp(request.ident, "NTLMSSP\0", 8) != 0,
+ ("Type 1 message has invalid NTLMSSP signature"));
+- ONV(request.msgType != 1,
+- ("Type 1 message has wrong type: %u (expected 1)", request.msgType));
++ ONV(le32toh(request.msgType) != 1,
++ ("Type 1 message has wrong type: %u (expected 1)", le32toh(request.msgType)));
+
+ NE_DEBUG(NE_DBG_HTTP, "auth: Valid Type 1 message received.\n");
+ #ifdef NE_DEBUGGING
+@@ -1893,8 +1893,8 @@ static int serve_ntlm(ne_socket *sock, void *userdata)
+
+ ONV(memcmp(response.ident, "NTLMSSP\0", 8) != 0,
+ ("Type 3 message has invalid NTLMSSP signature"));
+- ONV(response.msgType != 3,
+- ("Type 3 message has wrong type: %u (expected 3)", response.msgType));
++ ONV(le32toh(response.msgType) != 3,
++ ("Type 3 message has wrong type: %u (expected 3)", le32toh(response.msgType)));
+
+ /* Validate security buffers have reasonable values */
+ ONV(response.lmResponse.len > 24 && response.lmResponse.len != 24,
diff --git a/neon.spec b/neon.spec
index a71490f..4102480 100644
--- a/neon.spec
+++ b/neon.spec
@@ -13,6 +13,7 @@ License: LGPL-2.0-or-later
URL: https://notroj.github.io/neon/
Source0: https://notroj.github.io/neon/neon-%{version}.tar.gz
Patch0: neon-0.34.0-multilib.patch
+Patch1: neon-0.37.0-bigend.patch
BuildRequires: expat-devel, openssl-devel, zlib-devel, krb5-devel
BuildRequires: pkgconfig, make, gcc, xmlto, libntlm-devel
%if %{with pkcs11}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-26 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 14:40 [rpms/neon] epel10: - fix NTLM test failures on bigendian systems Joe Orton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox