#1928 closed defect (fixed)
password encryption can't be used on 64bit platform.
Reported by: | Owned by: | dmorissette | |
---|---|---|---|
Priority: | low | Milestone: | 5.0 release |
Component: | Command Line Utilties | Version: | 4.10 |
Severity: | minor | Keywords: | |
Cc: |
Description (last modified by )
I'm using mapserver on Fedora Core 5 (x86-64). I wanna use password encryption(RFC18) on x86-64. but this function only works on 32bit platform. the explanation patch is here. http://oi.nu/mapcrypto.c.diff -- IIDA Tetsushi.(hogeman)
Attachments (1)
Change History (5)
by , 17 years ago
Attachment: | mapcrypto.c.diff added |
---|
mapcrypto.c.diff (copy of http://oi.nu/mapcrypto.c.diff)
comment:2 by , 17 years ago
Description: | modified (diff) |
---|---|
Milestone: | → 5.0 release |
Status: | new → assigned |
follow-up: 4 comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Applied the patch in r6139 (4.99 trunk)
Note that I merged the U4BYTES definition from the provided patch with the ms_int32 definitions from map.h and put the whole thing in map.h. Hopefully that won't cause side-effects on any platform:
/* definition of ms_int32/ms_uint32 */ #include <limits.h> #if ULONG_MAX == 0xffffffff typedef long ms_int32; typedef unsigned long ms_uint32; #elif UINT_MAX == 0xffffffff typedef int ms_uint32; typedef unsigned int ms_uint32; #else #include <stdint.h> typedef int32_t ms_int32; typedef uint32_t ms_uint32; #endif
comment:4 by , 17 years ago
Here is the map.h definition again:
/* definition of ms_int32/ms_uint32 */ #include <limits.h> #if ULONG_MAX == 0xffffffff typedef long ms_int32; typedef unsigned long ms_uint32; #elif UINT_MAX == 0xffffffff typedef int ms_uint32; typedef unsigned int ms_uint32; #else #include <stdint.h> typedef int32_t ms_int32; typedef uint32_t ms_uint32; #endif