> I'm trying to port an application from Linux390 to Z/os Open Edition. =
> The program was written in C and use cc compiler in both Linux and z/os =
> systems to be compiled.
> After compilation, I try to execute it but take an abend oc4 with an =
> exeption that seems to be related to this set of instruction:
>
> void sha_init(SHA_INFO *sha_info)
> {
> sha_info->digest[0] =3D 0x67452301L;
> sha_info->digest[1] =3D 0xefcdab89L;
> sha_info->digest[2] =3D 0x98badcfeL;
> sha_info->digest[3] =3D 0x10325476L;
> sha_info->digest[4] =3D 0xc3d2e1f0L;
> sha_info->count_lo =3D 0L;
> sha_info->count_hi =3D 0L;
> sha_info->local =3D 0;
> }
>
> This program is a template to use a SHA password check
>
> The programs run file on Linux390!!!!
OE/USS for z/OS (OS/390) uses EBCDIC collation rather than
ASCII, so that can't be helping matters- especially dealing
with encryption. Also you need to ensure that the pointer
you passed was properly malloc'd; Behavior of unallocated
memory pointers may vary system-to-system.
--
John R. Campbell Speaker to Machines [EMAIL PROTECTED]
- As a SysAdmin, yes, I CAN read your e-mail, but I DON'T get that bored!
Disclaimer: All opinions expressed above are those of John R. Campbell
alone and are seriously unlikely to reflect the opinions of
his employer(s) or lackeys thereof. Anyone who says
differently is itching for a fight!