This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: openssl-0.9.8a-1 - core dump


On Oct 31 19:13, Ralf Hauser wrote:
> Hi Corinna,
> 
> As per your message cited below, I am trying to use the new openssl version
> as follows and it core dumps:
> >>> openssl smime -decrypt -inkey  decryptionKey.pem -in
> mimeMessageEncrypted.eml
> >>>Enter pass phrase for decryptionKey.pem:
> >>>Segmentation fault (core dumped)
> >>>What did I do wrong?

No idea.  What did you do before to create the files decryptionKey.pem
and mimeMessageEncrypted.eml?  I'm building OpenSSL, but that doesn't
mean I'm overly fluent in using the command line tool.

> >>Are you by any chance using the 0.9.8a 'smime' utility with the older 
> >>'0.9.8' OpenSSL shared library? If so the you'd get that result 
> >>because the required functionality isn't in 0.9.8, only 0.9.8a.
> [steve@openssl.org] ... you said:
> > 
> > "Cygwin: OpenSSL 0.9.8a 11 Oct 2005 (Library: OpenSSL 0.9.8 05 Jul 2005)"
> > 
> > You get that when the shared library (DLL) isn't the same as the openssl
> > utility version. This is the cause of the problems.
> > 
> > You need to find where the DLL is that the openssl utility is using and
> > replace it with the 0.9.8a version. It might be called something like
> > cryptoeay32-0.9.8.dll
> I only find
> libcrypt.a*
> libcrypt.dll.a*
> where do you put the openssl libraries?

/usr/bin, as all DLLs.  But you can't see which version they are since
both versions, 0.9.8 as well as 0.9.8a use the same versioning:

  /usr/bin/cygcrypto-0.9.8.dll
  /usr/bin/cygssl-0.9.8.dll

> > You can tell the difference by doing:
> > 
> > nm whatever.dll | grep X509_VERIFY_PARAM_set_flags
> > nm whatever.dll | grep X509_VERIFY_PARAM_get_flags
> > 
> > If you don't get any output for X509_VERIFY_PARAM_get_flags its the
> > 0.9.8 library. If you get output for both its 0.9.8a or later. If you
> > don't get output for either its probably 0.9.7X.

The above method won't help since the DLLs don't have symbols.  You have
to use the dll link lib.  On my system, with 0.9.8a installed:

  $ cd /usr/lib
  $ nm libcrypto.dll.a | grep X509_VERIFY_PARAM_set_flags
  00000000 T _X509_VERIFY_PARAM_set_flags
  00000000 I __imp__X509_VERIFY_PARAM_set_flags


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]