I'm currently trying to have IBM 4758 cryptocard to work with openssl 0.9.7b. I have the following error message :
.......................................^^^^^^^^^^^^^^^^^^^^/distrib/openssl/bin# openssl engine -vvvv -t -pre "SO_PATH:/usr/lib/libcsufsapi.a" 4758cca (4758cca) IBM 4758 CCA hardware engine support [Success]: SO_PATH:/usr/lib/libcsufsapi.a [ unavailable ] 21098:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:149:filename(/usr/lib/libcsufsapi.a): 0509-022 Cannot load module /usr/lib/libcsufsapi.a. 0509-103 The module has an invalid magic number.
21098:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244: 21098:error:87066067:lib(135):IBM_4758_CCA_INIT:dso failure:hw_4758_cca.c:268: SO_PATH: Specifies the path to the '4758cca' shared library (input flags): STRING
Knowing nothing about IBM 4758 cryptocards or the engine mechanism, mon ami, my best guess according to the marked diagnostic is that the libcsufsapi.a module is either compiled for the wrong machine or has been corrupted in transit. Secondary possibility: it is not there at all and the "magic number" diagnostic is misleading.
Unix binary files often start with a characteristic sequence of bytes, which is refered to as a "magic number". This practice actually started with the original Unix PDP-11 binary executable format. In this format the very first instruction in a binary executable file was a JUMP instruction, past the static data area at the beginning of the file, into the first executable instruction of the code. Thus the binary opcode for JUMP was always the first few bytes of an executable binary file, and system software started to identify executable binaries by the presence or absence of those characteristic bytes. This eventually evolved into the current "magic number" convention.
Best of luck getting things sorted out!
-- Charles B (Ben) Cranston mailto: [EMAIL PROTECTED] http://www.wam.umd.edu/~zben
______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]