Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 1 Nov 2005 11:07:44 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated: openssl-0.9.8a-1 - core dump Message-ID: <20051101100744.GB11765@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <0MKsUu-1EWe9g3eiH-00017u AT mx DOT kundenserver DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0MKsUu-1EWe9g3eiH-00017u@mx.kundenserver.de> User-Agent: Mutt/1.4.2i 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 AT openssl DOT 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/