search for: openssh_swap64

Displaying 2 results from an estimated 2 matches for "openssh_swap64".

2024 Oct 29
1
FYI: fix for big-endian systems pushed to V_9_9 branch
On 27/10/2024 05:45, Damien Miller wrote: > If you distribute OpenSSH to big-endian systems and have packaged > OpenSSH 9.9 already, then I recommend you include these fixes as the > next release of OpenSSH will make this key exchange algorithm the > default. > I tried to update my Solaris builds but ran into a build error. In file included from kexmlkem768x25519.c:50:
2024 Oct 29
1
FYI: fix for big-endian systems pushed to V_9_9 branch
...10 and older. oops, I think this should fix it: diff --git a/defines.h b/defines.h index b02f2942a..c1c21aba6 100644 --- a/defines.h +++ b/defines.h @@ -653,14 +653,14 @@ struct winsize { ((uint32_t)(v) & 0xff0000) >> 8 | \ ((uint32_t)(v) & 0xff000000) >> 24) # define openssh_swap64(v) \ - (__uint64_t)((((__uint64_t)(v) & 0xff) << 56) | \ - ((__uint64_t)(v) & 0xff00ULL) << 40 | \ - ((__uint64_t)(v) & 0xff0000ULL) << 24 | \ - ((__uint64_t)(v) & 0xff000000ULL) << 8 | \ - ((__uint64_t)(v) & 0xff00000000ULL) >> 8 | \ - (...