Hello, I did a quick search of the openssl.org pages for patch submission guidelines. I didn't find one, so please excuse any oddities from my end.
This patch adds z/OS compilations options to the Configure script for openssl 0.9.8k. My setup: I compiled openssl with xlc (V1.10) and ran the openssl self checks on z/OS V1R10. I compiled and ran the openssl self checks on z/OS R10 with the ICSF (encryption hardware and /dev/random enabled by IBM support staff). Most of the self checks passed, there was a glaring failure for DES. The new build options are as follows: - OS390-Unix32-ascii Compile openssl as a 31 bit ASCII enabled with shared libraries - OS390-Unix64-ascii Compile openssl as a 64 bit ASCII enabled with shared libraries - OS390-Unix32 Compile openssl as a 31 bit app with shared libraries (uses the platform native encoding EBCDIC) - OS390-Unix64 Compile openssl as a 64 bit app with shared libraries (uses the platform native encoding EBCDIC) --- openssl-0.9.8k.orig/Configure Mon Feb 16 03:44:22 2009 +++ openssl-0.9.8k/Configure Wed Apr 29 17:02:13 2009 @@ -465,6 +465,15 @@ my %table=( # You need to compile using the c89.sh wrapper in the tools directory, because the # IBM compiler does not like the -L switch after any object modules. # +# ASCII libraries for both 31bit and 64bit modes +"OS390-Unix32-ascii","xlc: -qascii -D_ENHANCED_ASCII_EXT=0xFFFFFFFF -DB_ENDIAN -DNO_SYS_PARAM_H -DNO_ASM -DFULLBLOCKWRITES -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE_NO_THREADS -D_VARARG_EXT_ -D_UNIX03_SOURCE -D_IEEEV1_COMPATIBILITY -qchars=signed -qlanglvl=extended -W l,DLL -W c,EXPORTALL,RENT,NOANSIALIAS ::(unknown):MVS:-lm:THIRTY_TWO_BIT DES_PTR MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:${no_asm}:dlfcn:svr5-shared::-W l,dll:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::", +"OS390-Unix64-ascii","xlc: -qascii -D_ENHANCED_ASCII_EXT=0xFFFFFFFF -DB_ENDIAN -DNO_SYS_PARAM_H -DNO_ASM -DFULLBLOCKWRITES -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE_NO_THREADS -D_VARARG_EXT_ -D_UNIX03_SOURCE -D_IEEEV1_COMPATIBILITY -qchars=signed -qlanglvl=extended -W l,DLL,LP64,XPLINK -W c,LP64,XPLINK,EXPORTALL,RENT,NOANSIALIAS ::(unknown):MVS:-lm:SIXTY_FOUR_BIT_LONG DES_PTR MD2 _CHAR RC4_INDEX RC4_CHAR BF_PTR:${no_asm}:dlfcn:svr5-shared::-q64 -W l,dll:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::", + +# EBCDIC (platform native) libraries for both 31bit and 64bit modes +"OS390-Unix32","xlc: -DB_ENDIAN -DNO_SYS_PARAM_H -DNO_ASM -DFULLBLOCKWRITES -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE_NO_THREADS -D_VARARG_EXT_ -D_UNIX03_SOURCE -D_IEEEV1_COMPATIBILITY -qchars=signed -qlanglvl=extended -W l,DLL -W c,EXPORTALL,RENT,NOANSIALIAS ::(unknown):MVS:-lm:THIRTY_TWO_BIT DES_PTR MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:${no_asm}:dlfcn:svr5-shared::-W l,dll:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::", +"OS390-Unix64","xlc: -DB_ENDIAN -DNO_SYS_PARAM_H -DNO_ASM -DFULLBLOCKWRITES -D_XOPEN_SOURCE_EXTENDED=1 -D_ALL_SOURCE_NO_THREADS -D_VARARG_EXT_ -D_UNIX03_SOURCE -D_IEEEV1_COMPATIBILITY -qchars=signed -qlanglvl=extended -W l,DLL,LP64,XPLINK -W c,LP64,XPLINK,EXPORTALL,RENT,NOANSIALIAS ::(unknown):MVS:-lm:SIXTY_FOUR_BIT_LONG DES_PTR MD2 _CHAR RC4_INDEX RC4_CHAR BF_PTR:${no_asm}:dlfcn:svr5-shared::-q64 -W l,dll:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)::", + +# The original compilation option for z/OS "OS390-Unix","c89.sh:-O -DB_ENDIAN -DCHARSET_EBCDIC -DNO_SYS_PARAM_H -D_ALL_SOURCE::(unknown):::THIRTY_TWO_BIT DES_PTR DES_UNROLL MD2_CHAR RC4_INDEX RC4_CHAR BF_PTR:::", # Win64 targets, WIN64I denotes IA-64 and WIN64A - AMD64 _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. _____________ ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org