On Fri, Apr 13, 2007, Florian MANACH wrote: > Hello Steve and thank you for the answer. > You were right. I was linking with 0.9.7. > I've just installed the 0.9.8e and unfortunately, the segfault still > remain : > > Here is the new core dump : > ------------------------------------------------ > #0 0x400cd204 in EVP_CIPHER_nid () from > /usr/local/ssl/lib/libcrypto.so.0.9.8 > #1 0x400cd22b in EVP_CIPHER_type () from > /usr/local/ssl/lib/libcrypto.so.0.9.8 > #2 0x4014b0b0 in __JCR_LIST__ () from /usr/local/ssl/lib/libcrypto.so.0.9.8 > #3 0x4006591c in OBJ_obj2nid () from /usr/local/ssl/lib/libcrypto.so.0.9.8 > #4 0x40106322 in PKCS7_set_cipher () from > /usr/local/ssl/lib/libcrypto.so.0.9.8 > #5 0x401062c8 in PKCS7_set_cipher () from > /usr/local/ssl/lib/libcrypto.so.0.9.8 > #6 0x40108f02 in PKCS7_encrypt () from > /usr/local/ssl/lib/libcrypto.so.0.9.8 > #7 0xbffff398 in ?? () > #8 0x4000ab80 in _dl_runtime_resolve () at dl-runtime.c:196 > #9 0x0804a410 in main (argc=Cannot access memory at address 0x9 > ------------------------------------------- > > It's very strange, I took a look at the openssl's smime utility to make > this soft, and I'm reading a book where the way to do a pkcs7 encryption > is the same as mine. > > I really don't understand what's going on. >
That implies it doesn't like the "cipher" argument you are passing to PKCS7_encrypt(). Your example only has a parameter for that: what value are you actually passing? Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]